TF-3758 Update size for left menu on mobile
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
@@ -7,6 +7,7 @@ class ResponsiveUtils {
|
||||
static const double defaultSizeLeftMenuMobile = 375;
|
||||
static const double defaultSizeDrawer = 320;
|
||||
static const double defaultSizeMenu = 256;
|
||||
static const double mobileLeftMenuSize = 339;
|
||||
|
||||
static const int heightShortest = 600;
|
||||
|
||||
|
||||
@@ -27,20 +27,11 @@ class MailboxView extends BaseMailboxView {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
ThemeUtils.setStatusBarTransparentColor();
|
||||
|
||||
return SafeArea(bottom: false, left: false, right: false,
|
||||
top: controller.responsiveUtils.isMobile(context),
|
||||
child: ClipRRect(
|
||||
borderRadius: controller.responsiveUtils.isPortraitMobile(context)
|
||||
? const BorderRadius.only(
|
||||
topRight: Radius.circular(14),
|
||||
topLeft: Radius.circular(14))
|
||||
: const BorderRadius.all(Radius.zero),
|
||||
return SafeArea(
|
||||
child: Drawer(
|
||||
child: Scaffold(
|
||||
backgroundColor: Colors.white,
|
||||
body: Column(
|
||||
shape: InputBorder.none,
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Expanded(
|
||||
@@ -113,11 +104,10 @@ class MailboxView extends BaseMailboxView {
|
||||
} else {
|
||||
return const SizedBox.shrink();
|
||||
}
|
||||
})
|
||||
]),
|
||||
)
|
||||
)
|
||||
)
|
||||
}),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -99,11 +99,7 @@ class MailboxDashBoardView extends BaseMailboxDashBoardView {
|
||||
drawer: ResponsiveWidget(
|
||||
responsiveUtils: controller.responsiveUtils,
|
||||
mobile: SizedBox(
|
||||
width: double.infinity,
|
||||
child: MailboxView()
|
||||
),
|
||||
landscapeMobile: SizedBox(
|
||||
width: ResponsiveUtils.defaultSizeDrawer,
|
||||
width: ResponsiveUtils.mobileLeftMenuSize,
|
||||
child: MailboxView()
|
||||
),
|
||||
tablet: SizedBox(
|
||||
|
||||
Reference in New Issue
Block a user