From 1b72009cfb1c37c1eb50d04476a2314581d742cd Mon Sep 17 00:00:00 2001 From: ashilkn Date: Fri, 14 Oct 2022 15:23:45 +0530 Subject: [PATCH] added comments --- lib/ui/home_widget.dart | 3 ++- lib/ui/status_bar_widget.dart | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ui/home_widget.dart b/lib/ui/home_widget.dart index 75a092bbe..4b74aca32 100644 --- a/lib/ui/home_widget.dart +++ b/lib/ui/home_widget.dart @@ -258,7 +258,8 @@ class _HomeWidgetState extends State { return UserDetailsStateWidget( child: WillPopScope( child: Scaffold( - drawerEnableOpenDragGesture: false, + drawerEnableOpenDragGesture: + false, //using a hack instead of enabling this as enabling this will create other problems drawer: ConstrainedBox( constraints: const BoxConstraints(maxWidth: 428), child: Drawer( diff --git a/lib/ui/status_bar_widget.dart b/lib/ui/status_bar_widget.dart index 473fa1847..bb517dd47 100644 --- a/lib/ui/status_bar_widget.dart +++ b/lib/ui/status_bar_widget.dart @@ -156,6 +156,7 @@ class _SyncStatusWidgetState extends State { kSleepDuration.inMicroseconds); if (_event == null || isNotOutdatedEvent || + //sync error cases are handled in StatusBarWidget _event.status == SyncStatus.error) { return const SizedBox.shrink(); }