Skip to content

Commit 9ebeabd

Browse files
committed
Fix lint
1 parent 00f7d70 commit 9ebeabd

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

lib/common/navigation/page_scaffold.dart

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,25 @@ 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+
/// 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

0 commit comments

Comments
 (0)