quick links improvement.

development
Sikander Saleem 5 years ago
parent fd97e40e12
commit ac563c7f71

@ -78,6 +78,7 @@ class _CommonAppbarState extends State<CommonAppbar> {
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<CommonAppbar> {
url = ContentInfoScreen.routeName;
contentId = 1;
}
print("url:$url");
Navigator.pushNamed(context, url, arguments: contentId);
}),
),

Loading…
Cancel
Save