From ac563c7f714f380ef46ab807b23f04b798e5c836 Mon Sep 17 00:00:00 2001 From: Sikander Saleem Date: Thu, 29 Apr 2021 14:08:23 +0300 Subject: [PATCH] quick links improvement. --- lib/ui/common_appbar.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ui/common_appbar.dart b/lib/ui/common_appbar.dart index 1bb0cbe..91d7308 100644 --- a/lib/ui/common_appbar.dart +++ b/lib/ui/common_appbar.dart @@ -78,6 +78,7 @@ class _CommonAppbarState extends State { if (widget.showDrawer) { try { quickLinks = (await TangheemUserApiClient().quickLinks())?.data ?? []; + quickLinks = quickLinks.where((element) => element.position=="down").toList(); quickLinks.sort((a, b) => a.orderNo.compareTo(b.orderNo)); } catch (ex) {} setState(() {}); @@ -239,7 +240,6 @@ class _CommonAppbarState extends State { url = ContentInfoScreen.routeName; contentId = 1; } - print("url:$url"); Navigator.pushNamed(context, url, arguments: contentId); }), ),