From d89fe3fd4f6f486547ca99bf7b6def7eacfb94c2 Mon Sep 17 00:00:00 2001 From: NikhilVadoliya Date: Thu, 27 Jan 2022 18:40:09 +0530 Subject: [PATCH] reverse supported --- lib/src/app_bar.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/src/app_bar.dart b/lib/src/app_bar.dart index ac73600..5ec614e 100644 --- a/lib/src/app_bar.dart +++ b/lib/src/app_bar.dart @@ -23,12 +23,13 @@ class SAppBar extends StatelessWidget { @override Widget build(BuildContext context) { + List items = appBar(); return Container( height: sliderAppBar.appBarHeight, padding: sliderAppBar.appBarPadding, color: sliderAppBar.appBarColor, child: Row( - children: appBar(), + children: items, ), ); } @@ -58,7 +59,7 @@ class SAppBar extends StatelessWidget { ]; if (slideDirection == SlideDirection.RIGHT_TO_LEFT) { - return list.reversed.toList(); + return List.from(list.reversed); } return list; }