mirror of
https://bitbucket.org/FransoletThomas/tablet-app.git
synced 2025-12-06 08:31:19 +00:00
BoxFit.contain in menu
This commit is contained in:
parent
b7c4032a17
commit
a684eed3c1
@ -127,7 +127,7 @@ class _MenuView extends State<MenuView> {
|
||||
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,
|
||||
),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user