File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,19 +2,30 @@ import 'package:flutter/material.dart';
22
33/// [Scaffold] for pages.
44class PageScaffold extends StatelessWidget {
5+ /// The [appBar] to be supplied to [Scaffold] .
56 final PreferredSizeWidget ? appBar;
7+
8+ /// The [body] to be supplied to [Scaffold] .
69 final Widget ? body;
10+
11+ /// The [drawer] to be supplied to [Scaffold] .
712 final Widget ? drawer;
13+
14+ /// The [floatingActionButton] to be supplied to [Scaffold] .
815 final Widget ? floatingActionButton;
16+
17+ /// The [floatingActionButtonLocation] to be supplied to [Scaffold] .
918 final FloatingActionButtonLocation ? floatingActionButtonLocation;
1019
1120 /// A [Scaffold] that wraps [body] inside a [SafeArea] .
21+ /// Meant to be used as a drop-in replacement to [Scaffold] for convenience.
1222 const PageScaffold ({
13- this .appBar = null ,
14- this .body = null ,
15- this .drawer = null ,
16- this .floatingActionButton = null ,
17- this .floatingActionButtonLocation = null ,
23+ super .key,
24+ this .appBar,
25+ this .body,
26+ this .drawer,
27+ this .floatingActionButton,
28+ this .floatingActionButtonLocation,
1829 });
1930
2031 @override
You can’t perform that action at this time.
0 commit comments