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);
Widget getNoUpcomingMarathonWidget(BuildContext context) {
;
return Container(
decoration: MyDecorations.shadowDecoration,
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,
child: Row(
children: <Widget>[
Expanded(
flex: 3,
child: Image.network(
dashboardProvider.eventActivity?.shortImageURL ??
"",
fit: BoxFit.cover,
)),
key: UniqueKey()
).paddingAll(5)),
Expanded(
flex: AppState().isArabic(context) ? 4 : 5,
child: SizedBox(

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

Loading…
Cancel
Save