Skip to content

Commit

Permalink
Patched the scaffold widget.
Browse files Browse the repository at this point in the history
  - appBar elevation was needed.
  - Removed the restrictions on the scaffold FAB, they were limiting useful functions like scaling.
  • Loading branch information
DenisBarzanov committed Feb 5, 2020
1 parent bc952ab commit 59fe621
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/templates/layout/scaffold.dart
Expand Up @@ -13,6 +13,7 @@ class ResponsiveScaffold extends StatelessWidget {
this.endIcon,
this.kTabletBreakpoint = 720.0,
this.kDesktopBreakpoint = 1440.0,
this.appBarElevation,
});

final Widget drawer, endDrawer;
Expand All @@ -23,14 +24,16 @@ class ResponsiveScaffold extends StatelessWidget {

final Widget trailing;

final FloatingActionButton floatingActionButton;
final Widget floatingActionButton;

final kTabletBreakpoint;
final kDesktopBreakpoint;
final _drawerWidth = 304.0;

final IconData menuIcon, endIcon;

final double appBarElevation;

final Key scaffoldKey;

@override
Expand All @@ -57,6 +60,7 @@ class ResponsiveScaffold extends StatelessWidget {
child: Scaffold(
key: scaffoldKey,
appBar: AppBar(
elevation: appBarElevation,
automaticallyImplyLeading: false,
title: title,
actions: <Widget>[
Expand Down

0 comments on commit 59fe621

Please sign in to comment.