Skip to content

Commit

Permalink
update top app bar widget
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabio-web committed Jan 27, 2022
1 parent 059eece commit e6d5794
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/app/modules/home/widgets/top_app_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ class TopAppBar extends StatelessWidget {

final String title;
final Widget? icon;
final bool? divider;

const TopAppBar({Key? key, required this.title, required this.icon}) : super(key: key);
const TopAppBar({Key? key, required this.title, required this.icon, this.divider = true}) : super(key: key);

@override
Widget build(BuildContext context) {
Expand All @@ -26,10 +27,10 @@ class TopAppBar extends StatelessWidget {
],
),
),
SizedBox(
divider == true ? SizedBox(
height: 13.0.wp,
child: Divider(color: Colors.grey[200], thickness: 1)
),
) : SizedBox(height: 5.0.wp),
],
);
}
Expand Down

0 comments on commit e6d5794

Please sign in to comment.