null_safety
小赖 5 years ago
parent a9de4679f1
commit 8dd8bebcb8

@ -7,9 +7,11 @@ import 'package:flutter_screenutil/flutter_screenutil.dart';
///
///made with Scaffold from `Material`
///
///`title`,`body`
///
///`leading`,`bottomNavigationBar`,`appBarBottom`
///
///`title`,`body`,`leading`,`bottomNavigationBar`,`appBarBottom`,`appBar`
///
///title AppBar `null`scaffoldAppBar
class ASScaffold extends StatefulWidget {
///`String``Text`
final dynamic title;
@ -55,7 +57,9 @@ class _ASScaffoldState extends State<ASScaffold> {
endDrawer: widget.endDrawer,
backgroundColor: kBackgroundColor,
bottomNavigationBar: widget.bottomNavigationBar,
appBar: widget.appBar ??
appBar: widget.title == null && widget.appBar == null
? null
: widget.appBar ??
AppBar(
brightness: Brightness.light,
backgroundColor: kForegroundColor,

Loading…
Cancel
Save