mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-05-04 07:14:56 -04:00
native device orientation work
This commit is contained in:
parent
debb475bdc
commit
0d888363ff
3 changed files with 141 additions and 118 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue