backup.
This commit is contained in:
@@ -7,11 +7,15 @@ import 'package:responsive_builder/responsive_builder.dart';
|
||||
class NavigationBar extends StatefulWidget implements PreferredSizeWidget {
|
||||
final Key key;
|
||||
final PreferredSizeWidget bottom;
|
||||
final String title;
|
||||
final bool back;
|
||||
|
||||
NavigationBar({Key key, PreferredSizeWidget bottom})
|
||||
NavigationBar({Key key, PreferredSizeWidget bottom, String title, bool back})
|
||||
: key = key,
|
||||
preferredSize = Size.fromHeight(kToolbarHeight + (bottom?.preferredSize?.height ?? 0.0)),
|
||||
bottom = bottom;
|
||||
bottom = bottom,
|
||||
title = title ?? '',
|
||||
back = back ?? false;
|
||||
|
||||
@override
|
||||
final Size preferredSize;
|
||||
@@ -28,7 +32,7 @@ class NavigationBarState extends State<NavigationBar> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return ScreenTypeLayout(
|
||||
mobile: MobileNavigationBar(),
|
||||
mobile: MobileNavigationBar(title: widget.title, back: widget.back,),
|
||||
tablet: DesktopNavigationBar(),
|
||||
desktop: DesktopNavigationBar(),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user