scaffold add fab

null_safety
小赖 4 years ago
parent e20b6e250a
commit 8ebf741d06

@ -43,6 +43,7 @@ class ASScaffold extends StatefulWidget {
/// ///
final Color backgroundColor; final Color backgroundColor;
final Widget floatingActionButton;
ASScaffold({ ASScaffold({
Key key, Key key,
this.title, this.title,
@ -54,6 +55,7 @@ class ASScaffold extends StatefulWidget {
this.appBar, this.appBar,
this.backgroundColor = kBackgroundColor, this.backgroundColor = kBackgroundColor,
this.actions, this.actions,
this.floatingActionButton,
}) : super(key: key); }) : super(key: key);
@override @override
@ -67,6 +69,7 @@ class _ASScaffoldState extends State<ASScaffold> {
endDrawer: widget.endDrawer, endDrawer: widget.endDrawer,
backgroundColor: widget.backgroundColor, backgroundColor: widget.backgroundColor,
bottomNavigationBar: widget.bottomNavigationBar, bottomNavigationBar: widget.bottomNavigationBar,
floatingActionButton: widget.floatingActionButton,
appBar: widget.title == null && appBar: widget.title == null &&
widget.appBar == null && widget.appBar == null &&
widget.appBarBottom == null widget.appBarBottom == null

Loading…
Cancel
Save