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,25 @@ 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+ /// The [body] to be supplied to [Scaffold] .
68 final Widget ? body;
9+ /// The [drawer] to be supplied to [Scaffold] .
710 final Widget ? drawer;
11+ /// The [floatingActionButton] to be supplied to [Scaffold] .
812 final Widget ? floatingActionButton;
13+ /// The [floatingActionButtonLocation] to be supplied to [Scaffold] .
914 final FloatingActionButtonLocation ? floatingActionButtonLocation;
1015
1116 /// A [Scaffold] that wraps [body] inside a [SafeArea] .
17+ /// Meant to be used as a drop-in replacement to [Scaffold] for convenience.
1218 const PageScaffold ({
13- this .appBar = null ,
14- this .body = null ,
15- this .drawer = null ,
16- this .floatingActionButton = null ,
17- this .floatingActionButtonLocation = null ,
19+ this .appBar,
20+ this .body,
21+ this .drawer,
22+ this .floatingActionButton,
23+ this .floatingActionButtonLocation,
1824 });
1925
2026 @override
You can’t perform that action at this time.
0 commit comments