From a684eed3c1d78f8463daa904bd2dc15b9ec79843 Mon Sep 17 00:00:00 2001 From: Thomas Fransolet Date: Wed, 24 Apr 2024 15:09:41 +0200 Subject: [PATCH] BoxFit.contain in menu --- lib/Screens/Menu/menu_view.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Screens/Menu/menu_view.dart b/lib/Screens/Menu/menu_view.dart index 4d20592..5f40aba 100644 --- a/lib/Screens/Menu/menu_view.dart +++ b/lib/Screens/Menu/menu_view.dart @@ -127,7 +127,7 @@ class _MenuView extends State { color: menuDTO.sections![index].imageSource == null ? kBackgroundColor : null, // default color if no image shape: BoxShape.rectangle, image: menuDTO.sections![index].imageSource != null || menuDTO.sections![index].type == SectionType.Video ? new DecorationImage( - fit: BoxFit.cover, + fit: BoxFit.contain, // contain or cover ? image: ImageCustomProvider.getImageProvider(appContext, menuDTO.sections![index].imageId, menuDTO.sections![index].type == SectionType.Video ? getYoutubeThumbnailUrl(menuDTO.sections![index]) : menuDTO.sections![index].imageSource!), ): null, ),