image changes.

flutter_upgrade
sultan khan 9 months ago
parent 29334a9ef0
commit 6e15336cc4

@ -25,6 +25,7 @@ class EventActivityBanner extends StatelessWidget {
const EventActivityBanner({Key? key}) : super(key: key); const EventActivityBanner({Key? key}) : super(key: key);
Widget getNoUpcomingMarathonWidget(BuildContext context) { Widget getNoUpcomingMarathonWidget(BuildContext context) {
;
return Container( return Container(
decoration: MyDecorations.shadowDecoration, decoration: MyDecorations.shadowDecoration,
height: isTablet ? MediaQuery.of(context).size.height * 0.17 : MediaQuery.of(context).size.height * 0.11, height: isTablet ? MediaQuery.of(context).size.height * 0.17 : MediaQuery.of(context).size.height * 0.11,
@ -258,13 +259,15 @@ class EventActivityBanner extends StatelessWidget {
height: double.infinity, height: double.infinity,
child: Row( child: Row(
children: <Widget>[ children: <Widget>[
Expanded( Expanded(
flex: 3, flex: 3,
child: Image.network( child: Image.network(
dashboardProvider.eventActivity?.shortImageURL ?? dashboardProvider.eventActivity?.shortImageURL ??
"", "",
fit: BoxFit.cover, fit: BoxFit.cover,
)), key: UniqueKey()
).paddingAll(5)),
Expanded( Expanded(
flex: AppState().isArabic(context) ? 4 : 5, flex: AppState().isArabic(context) ? 4 : 5,
child: SizedBox( child: SizedBox(

@ -35,13 +35,16 @@ class ActivityEventDetailsCard extends StatelessWidget {
children: <Widget>[ children: <Widget>[
CachedNetworkImage( CachedNetworkImage(
imageUrl: model.eventActivity!.detailImageURL!, imageUrl: model.eventActivity!.detailImageURL!,
height: 200,
placeholder: (BuildContext context, String url) => const LinearProgressIndicator( placeholder: (BuildContext context, String url) => const LinearProgressIndicator(
value: 0.7, value: 0.7,
minHeight: 200, minHeight: 200,
valueColor: AlwaysStoppedAnimation<Color>(Colors.white), valueColor: AlwaysStoppedAnimation<Color>(Colors.white),
backgroundColor: Color(0xff196D73), backgroundColor: Color(0xff196D73),
).toShimmer(), ).toShimmer(),
fit: BoxFit.cover,width: double.infinity , fit: BoxFit.contain,width: double.infinity ,
cacheKey: UniqueKey().toString(),
), ),
], ],

Loading…
Cancel
Save