Norbert515 / dynamic_theme

Dynamically changing your theme without hassle
MIT License
322 stars 68 forks source link

Deprecated update #41

Closed pulstar closed 4 years ago

pulstar commented 4 years ago

Change this at dynamic_theme.dart:

static DynamicThemeState of(BuildContext context) {
    return context.ancestorStateOfType(const TypeMatcher<DynamicThemeState>());
}

To this:

static DynamicThemeState of(BuildContext context) {
    return context.findAncestorStateOfType<State<DynamicTheme>>();
}
Norbert515 commented 4 years ago

Fixed in the latest commit!

pulstar commented 4 years ago

Great!

pureimpro commented 4 years ago

Hi, @Norbert515 could you update your package in pub.dev with all your enhancements ? thank you for this great job !

bartektartanus commented 3 years ago

@Norbert515 can you release new version with this fix? Current workaround is to use version directly from git:

dynamic_theme:
    git: https://github.com/Norbert515/dynamic_theme