Custom colors
This commit is contained in:
parent
e5f1512dcc
commit
ae644fdee2
|
|
@ -129,12 +129,12 @@ Future<AppState> _initialState(bool isTesting) async {
|
|||
final prefs = await SharedPreferences.getInstance();
|
||||
final prefString = prefs?.getString(kSharedPrefs);
|
||||
|
||||
String url = WebUtils.browserUrl ?? prefs.getString(kSharedPrefUrl) ?? '';
|
||||
final url = WebUtils.browserUrl ?? prefs.getString(kSharedPrefUrl) ?? '';
|
||||
if (!kReleaseMode) {
|
||||
//url = kAppStagingUrl;
|
||||
//url = kAppProductionUrl;
|
||||
//url = kAppDemoUrl;
|
||||
}
|
||||
//url = kAppProductionUrl;
|
||||
//url = kAppDemoUrl;
|
||||
|
||||
var prefState = PrefState();
|
||||
if (prefString != null) {
|
||||
|
|
|
|||
|
|
@ -56,6 +56,9 @@ class MenuDrawer extends StatelessWidget {
|
|||
final enableDarkMode = state.prefState.enableDarkMode;
|
||||
final localization = AppLocalization.of(context);
|
||||
final company = viewModel.selectedCompany;
|
||||
final inactiveColor = state.prefState
|
||||
.customColors[PrefState.THEME_SIDEBAR_INACTIVE_BACKGROUND_COLOR] ??
|
||||
'';
|
||||
|
||||
if (company == null) {
|
||||
return Container();
|
||||
|
|
@ -240,7 +243,9 @@ class MenuDrawer extends StatelessWidget {
|
|||
? SizedBox()
|
||||
: Expanded(
|
||||
child: Container(
|
||||
color: Theme.of(context).cardColor,
|
||||
color: inactiveColor.isNotEmpty
|
||||
? convertHexStringToColor(inactiveColor)
|
||||
: Theme.of(context).cardColor,
|
||||
child: ScrollableListView(
|
||||
hideMobileThumb: true,
|
||||
children: <Widget>[
|
||||
|
|
|
|||
Loading…
Reference in New Issue