Merge branch 'Version-2.0.6' into Version-2.0.7

# Conflicts:
#	pubspec.yaml
This commit is contained in:
Thomas Fransolet 2024-04-24 17:30:01 +02:00
commit fea8e11236
3 changed files with 4 additions and 4 deletions

Binary file not shown.

Binary file not shown.

View File

@ -66,7 +66,7 @@ class _MenuView extends State<MenuView> {
return Center(
child: GridView.builder(
shrinkWrap: true,
gridDelegate: new SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 3, childAspectRatio: kIsWeb ? 1.7 : 1.2),
gridDelegate: new SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 3, childAspectRatio: kIsWeb ? 1.7 : 1.3),
itemCount: menuDTO.sections!.length,
itemBuilder: (BuildContext context, int index) {
return InkWell(
@ -87,8 +87,8 @@ class _MenuView extends State<MenuView> {
},
child: Container(
decoration: isImageBackground ? boxDecoration(appContext, menuDTO.sections![index], false) : null,
padding: const EdgeInsets.all(12),
margin: EdgeInsets.symmetric(vertical: 8, horizontal: 8),
padding: const EdgeInsets.all(20),
margin: EdgeInsets.symmetric(vertical: 15, horizontal: 15),
child: isImageBackground ? Align(
alignment: Alignment.bottomRight,
child: FractionallySizedBox(
@ -124,7 +124,7 @@ class _MenuView extends State<MenuView> {
flex: 7,
child: Container(
decoration: BoxDecoration(
color: menuDTO.sections![index].imageSource == null ? kBackgroundColor : null, // default color if no image
color: menuDTO.sections![index].imageSource == null && menuDTO.sections![index].type != SectionType.Video ? 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.contain, // contain or cover ?