Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixes deprecation/renaming
  • Loading branch information
Lock128 authored Feb 24, 2021
1 parent 9249da6 commit 394de1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dynamic_theme.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class DynamicTheme extends StatefulWidget {
DynamicThemeState createState() => DynamicThemeState();

static DynamicThemeState of(BuildContext context) {
return context.ancestorStateOfType<State<DynamicTheme>>();
return context.findAncestorStateOfType<State<DynamicTheme>>();
}
}

Expand Down

0 comments on commit 394de1a

Please sign in to comment.