From 5d0c1b86eec8a69d0efa981e3b8f9b87dd84cac7 Mon Sep 17 00:00:00 2001 From: MH Johnson Date: Fri, 18 Jan 2019 14:13:14 -0500 Subject: [PATCH] [Material] Inline the single Theme.of(context) call in BAB (#26765) --- packages/flutter/lib/src/material/bottom_app_bar.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/flutter/lib/src/material/bottom_app_bar.dart b/packages/flutter/lib/src/material/bottom_app_bar.dart index f93124acda..8a40d7a130 100644 --- a/packages/flutter/lib/src/material/bottom_app_bar.dart +++ b/packages/flutter/lib/src/material/bottom_app_bar.dart @@ -116,7 +116,6 @@ class _BottomAppBarState extends State { @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 clipper = notchedShape != null @@ -129,7 +128,7 @@ class _BottomAppBarState extends State { 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,