ScaffoldProperties.fromContext constructor
ScaffoldProperties.fromContext(
- BuildContext context, {
- bool transparencyAppBar = false,
Implementation
factory ScaffoldProperties.fromContext(
BuildContext context, {
bool transparencyAppBar = false,
bool transparencyNavigationBar = false,
}) {
final t = Theme.of(context);
return ScaffoldProperties(
backgroundColor: t.scaffoldBackgroundColor,
drawerScrimColor: t.drawerTheme.scrimColor,
extendBodyBehindAppBar: transparencyAppBar,
extendBody: transparencyNavigationBar,
);
}