Open TesteurManiak opened 2 years ago
Nice work Guillaume!
I'm trying to install your fork, but I have this error:
Because every version of dynamic_theme from git depends on shared_preferences >=2.0.8 which requires SDK version >=2.14.0 <3.0.0, dynamic_theme from git is forbidden.
My company project has Dart >=2.12.
Could you downgrade shared_preferences
to 2.0.7
?
I suggest you to make another version of this package that supports Dart >=2.14
Hi @guillempuche,
I've changed the dependency from shared_preferences: ^2.0.9
to shared_preferences: ">=2.0.0 <3.0.0"
which should fix your issue. Note that you can also use dependency_overrides in your pubspec.yaml
to force the use of a specific version of shared_preferences
:
dependencies:
# my dependencies
dependency_overrides:
shared_preferences: 2.0.7
Thanks a lot for sharing your knowledge, Guillaume!
@Norbert515, could you update the package?
@Norbert515, could you merge this, please?
+1 @Norbert515
Fix #63
2.0.0
ThemeMode
instead ofBrightness
(Fix #49).ThemedWidgetBuilder themedWidgetBuilder
takes now the following parameters:BuildContext, ThemeMode, ThemeData
.data
parameter is now optional and has the typeThemeDataWithThemeModeBuilder
.defaultBrightness
becamedefaultThemeMode
and use by defaultThemeMode.system
.loadBrightnessOnStart
becameloadThemeOnStart
.package:dynamic_theme/dynamic_theme.dart
for bothDynamicTheme
andBrightnessSwitcherDialog
.