From 9d9d77ee3ac666d3c7c646b332a74a5d524d6054 Mon Sep 17 00:00:00 2001 From: Sultan Khan Date: Thu, 10 Dec 2020 11:35:54 +0300 Subject: [PATCH] bug fixes --- lib/pages/landing/landing_page.dart | 6 ++---- lib/widgets/drawer/app_drawer_widget.dart | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/pages/landing/landing_page.dart b/lib/pages/landing/landing_page.dart index 27797c30..d348060a 100644 --- a/lib/pages/landing/landing_page.dart +++ b/lib/pages/landing/landing_page.dart @@ -407,13 +407,11 @@ class _LandingPageState extends State with WidgetsBindingObserver { IconButton( //iconSize: 70, icon: Icon( - projectViewModel.isLogin && projectViewModel.user != null - ? Icons.settings - : Icons.login, + projectViewModel.isLogin ? Icons.settings : Icons.login, color: Colors.white, ), onPressed: () { - if (projectViewModel.isLogin && projectViewModel.user != null) + if (projectViewModel.isLogin) Navigator.of(context).pushNamed( SETTINGS, ); diff --git a/lib/widgets/drawer/app_drawer_widget.dart b/lib/widgets/drawer/app_drawer_widget.dart index 48a09fb4..41686aab 100644 --- a/lib/widgets/drawer/app_drawer_widget.dart +++ b/lib/widgets/drawer/app_drawer_widget.dart @@ -60,7 +60,7 @@ class _AppDrawerState extends State { padding: EdgeInsets.zero, children: [ Container( - height: SizeConfig.screenHeight * .25, + height: SizeConfig.screenHeight * .27, padding: EdgeInsets.all(15), child: InkWell( child: Column(