ScaffoldProperties.fromContext constructor

ScaffoldProperties.fromContext(
  1. BuildContext context, {
  2. bool transparencyAppBar = false,
  3. bool transparencyNavigationBar = 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,
  );
}