Commit 62ae5883 authored by Erick Ghaumez's avatar Erick Ghaumez Committed by Shi-Hao Hong

Fix 'popupTheme' variable name in a MaterialBannerTheme method (#41632)

parent 5961bcc5
...@@ -140,8 +140,8 @@ class MaterialBannerTheme extends InheritedTheme { ...@@ -140,8 +140,8 @@ class MaterialBannerTheme extends InheritedTheme {
/// MaterialBannerThemeData theme = MaterialBannerTheme.of(context); /// MaterialBannerThemeData theme = MaterialBannerTheme.of(context);
/// ``` /// ```
static MaterialBannerThemeData of(BuildContext context) { static MaterialBannerThemeData of(BuildContext context) {
final MaterialBannerTheme popupMenuTheme = context.inheritFromWidgetOfExactType(MaterialBannerTheme); final MaterialBannerTheme bannerTheme = context.inheritFromWidgetOfExactType(MaterialBannerTheme);
return popupMenuTheme?.data ?? Theme.of(context).bannerTheme; return bannerTheme?.data ?? Theme.of(context).bannerTheme;
} }
@override @override
......
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