Skip to content

Commit 62fe6ed

Browse files
committed
Fix lint
1 parent 00f7d70 commit 62fe6ed

1 file changed

Lines changed: 16 additions & 5 deletions

File tree

lib/common/navigation/page_scaffold.dart

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,30 @@ import 'package:flutter/material.dart';
22

33
/// [Scaffold] for pages.
44
class 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

0 commit comments

Comments
 (0)