diff --git a/lib/dynamic_theme.dart b/lib/dynamic_theme.dart index cf1d535..2aeba4a 100644 --- a/lib/dynamic_theme.dart +++ b/lib/dynamic_theme.dart @@ -38,7 +38,7 @@ class DynamicTheme extends StatefulWidget { DynamicThemeState createState() => DynamicThemeState(); static DynamicThemeState of(BuildContext context) { - return context.ancestorStateOfType>(); + return context.findAncestorStateOfType>(); } }