Unverified Commit 5d0c1b86 authored by MH Johnson's avatar MH Johnson Committed by GitHub

[Material] Inline the single Theme.of(context) call in BAB (#26765)

parent b531b8f5
......@@ -116,7 +116,6 @@ class _BottomAppBarState extends State<BottomAppBar> {
@override
Widget build(BuildContext context) {
final ThemeData theme = Theme.of(context);
final BottomAppBarTheme babTheme = BottomAppBarTheme.of(context);
final NotchedShape notchedShape = widget.shape ?? babTheme.shape;
final CustomClipper<Path> clipper = notchedShape != null
......@@ -129,7 +128,7 @@ class _BottomAppBarState extends State<BottomAppBar> {
return PhysicalShape(
clipper: clipper,
elevation: widget.elevation ?? babTheme.elevation ?? _defaultElevation,
color: widget.color ?? babTheme.color ?? theme.bottomAppBarColor,
color: widget.color ?? babTheme.color ?? Theme.of(context).bottomAppBarColor,
clipBehavior: widget.clipBehavior,
child: Material(
type: MaterialType.transparency,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment