Hard to see scrollbar in menu in light mode
This commit is contained in:
parent
3d6c85e01f
commit
c2d004977b
|
|
@ -343,7 +343,15 @@ class _MenuDrawerState extends State<MenuDrawer> {
|
||||||
: _expandedCompanySelector),
|
: _expandedCompanySelector),
|
||||||
state.credentials.token.isEmpty
|
state.credentials.token.isEmpty
|
||||||
? SizedBox()
|
? SizedBox()
|
||||||
: Expanded(
|
: Theme(
|
||||||
|
data: state.prefState.enableDarkMode ||
|
||||||
|
(state.prefState.customColors[PrefState
|
||||||
|
.THEME_SIDEBAR_INACTIVE_BACKGROUND_COLOR] ??
|
||||||
|
'')
|
||||||
|
.isNotEmpty
|
||||||
|
? ThemeData.dark()
|
||||||
|
: ThemeData.light(),
|
||||||
|
child: Expanded(
|
||||||
child: Container(
|
child: Container(
|
||||||
color: inactiveColor.isNotEmpty
|
color: inactiveColor.isNotEmpty
|
||||||
? convertHexStringToColor(inactiveColor)
|
? convertHexStringToColor(inactiveColor)
|
||||||
|
|
@ -359,8 +367,8 @@ class _MenuDrawerState extends State<MenuDrawer> {
|
||||||
const EdgeInsets.only(left: 20),
|
const EdgeInsets.only(left: 20),
|
||||||
onTap: () =>
|
onTap: () =>
|
||||||
launchUrl(Uri.parse(kDebugModeUrl)),
|
launchUrl(Uri.parse(kDebugModeUrl)),
|
||||||
leading:
|
leading: Icon(Icons.warning,
|
||||||
Icon(Icons.warning, color: Colors.red),
|
color: Colors.red),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
else
|
else
|
||||||
|
|
@ -368,11 +376,14 @@ class _MenuDrawerState extends State<MenuDrawer> {
|
||||||
child: ListTile(
|
child: ListTile(
|
||||||
tileColor: Colors.red.shade800,
|
tileColor: Colors.red.shade800,
|
||||||
title: Padding(
|
title: Padding(
|
||||||
padding: const EdgeInsets.only(bottom: 6),
|
padding:
|
||||||
|
const EdgeInsets.only(bottom: 6),
|
||||||
child: IconText(
|
child: IconText(
|
||||||
icon: Icons.warning,
|
icon: Icons.warning,
|
||||||
text: localization.debugModeIsEnabled,
|
text:
|
||||||
style: TextStyle(color: Colors.white),
|
localization.debugModeIsEnabled,
|
||||||
|
style:
|
||||||
|
TextStyle(color: Colors.white),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
subtitle: Text(
|
subtitle: Text(
|
||||||
|
|
@ -387,7 +398,8 @@ class _MenuDrawerState extends State<MenuDrawer> {
|
||||||
state.isHosted)
|
state.isHosted)
|
||||||
if (state.isMenuCollapsed)
|
if (state.isMenuCollapsed)
|
||||||
Tooltip(
|
Tooltip(
|
||||||
message: localization.verifyPhoneNumberHelp,
|
message:
|
||||||
|
localization.verifyPhoneNumberHelp,
|
||||||
child: ListTile(
|
child: ListTile(
|
||||||
contentPadding:
|
contentPadding:
|
||||||
const EdgeInsets.only(left: 12),
|
const EdgeInsets.only(left: 12),
|
||||||
|
|
@ -467,7 +479,8 @@ class _MenuDrawerState extends State<MenuDrawer> {
|
||||||
state.userCompany.isAdmin)
|
state.userCompany.isAdmin)
|
||||||
if (state.isMenuCollapsed)
|
if (state.isMenuCollapsed)
|
||||||
Tooltip(
|
Tooltip(
|
||||||
message: localization.companyDisabledWarning,
|
message:
|
||||||
|
localization.companyDisabledWarning,
|
||||||
child: ListTile(
|
child: ListTile(
|
||||||
contentPadding:
|
contentPadding:
|
||||||
const EdgeInsets.only(left: 12),
|
const EdgeInsets.only(left: 12),
|
||||||
|
|
@ -487,11 +500,13 @@ class _MenuDrawerState extends State<MenuDrawer> {
|
||||||
child: ListTile(
|
child: ListTile(
|
||||||
tileColor: Colors.orange.shade800,
|
tileColor: Colors.orange.shade800,
|
||||||
title: Padding(
|
title: Padding(
|
||||||
padding: const EdgeInsets.only(bottom: 6),
|
padding:
|
||||||
|
const EdgeInsets.only(bottom: 6),
|
||||||
child: IconText(
|
child: IconText(
|
||||||
icon: Icons.warning,
|
icon: Icons.warning,
|
||||||
text: localization.warning,
|
text: localization.warning,
|
||||||
style: TextStyle(color: Colors.white),
|
style:
|
||||||
|
TextStyle(color: Colors.white),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
subtitle: Text(
|
subtitle: Text(
|
||||||
|
|
@ -550,7 +565,8 @@ class _MenuDrawerState extends State<MenuDrawer> {
|
||||||
clearFilter: true,
|
clearFilter: true,
|
||||||
company: company,
|
company: company,
|
||||||
user: state.user,
|
user: state.user,
|
||||||
section: kSettingsAccountManagement));
|
section:
|
||||||
|
kSettingsAccountManagement));
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
@ -588,7 +604,8 @@ class _MenuDrawerState extends State<MenuDrawer> {
|
||||||
DrawerTile(
|
DrawerTile(
|
||||||
company: company,
|
company: company,
|
||||||
entityType: EntityType.recurringInvoice,
|
entityType: EntityType.recurringInvoice,
|
||||||
icon: getEntityIcon(EntityType.recurringInvoice),
|
icon: getEntityIcon(
|
||||||
|
EntityType.recurringInvoice),
|
||||||
title: localization.recurringInvoices,
|
title: localization.recurringInvoices,
|
||||||
iconTooltip: localization.newRecurringInvoice,
|
iconTooltip: localization.newRecurringInvoice,
|
||||||
),
|
),
|
||||||
|
|
@ -651,7 +668,8 @@ class _MenuDrawerState extends State<MenuDrawer> {
|
||||||
DrawerTile(
|
DrawerTile(
|
||||||
company: company,
|
company: company,
|
||||||
entityType: EntityType.recurringExpense,
|
entityType: EntityType.recurringExpense,
|
||||||
icon: getEntityIcon(EntityType.recurringExpense),
|
icon: getEntityIcon(
|
||||||
|
EntityType.recurringExpense),
|
||||||
title: localization.recurringExpenses,
|
title: localization.recurringExpenses,
|
||||||
),
|
),
|
||||||
DrawerTile(
|
DrawerTile(
|
||||||
|
|
@ -677,7 +695,9 @@ class _MenuDrawerState extends State<MenuDrawer> {
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
)),
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
height: kTopBottomBarHeight,
|
height: kTopBottomBarHeight,
|
||||||
child: AppBorder(
|
child: AppBorder(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue