Skip to content

Commit

Permalink
reverse supported
Browse files Browse the repository at this point in the history
  • Loading branch information
NikhilVadoliya committed Jan 27, 2022
1 parent f239fb3 commit d89fe3f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/src/app_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@ class SAppBar extends StatelessWidget {

@override
Widget build(BuildContext context) {
List<Widget> items = appBar();
return Container(
height: sliderAppBar.appBarHeight,
padding: sliderAppBar.appBarPadding,
color: sliderAppBar.appBarColor,
child: Row(
children: appBar(),
children: items,
),
);
}
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit d89fe3f

Please sign in to comment.