native device orientation work

This commit is contained in:
Christien Rioux 2025-03-17 22:51:34 -04:00
parent debb475bdc
commit 0d888363ff
3 changed files with 141 additions and 118 deletions

View file

@ -318,7 +318,7 @@ class _DrawerMenuState extends State<DrawerMenu> {
scale.subtleBorder,
]);
return DecoratedBox(
Widget menu = DecoratedBox(
decoration: ShapeDecoration(
shadows: themedShadow(scaleConfig, scale),
gradient: scaleConfig.useVisualIndicators ? null : gradient,
@ -393,6 +393,12 @@ class _DrawerMenuState extends State<DrawerMenu> {
),
])
]).paddingAll(16),
).paddingLTRB(0, 2, 2, 2);
);
if (scaleConfig.preferBorders || scaleConfig.useVisualIndicators) {
menu = menu.paddingLTRB(0, 2, 2, 2);
}
return menu;
}
}