reactive_theme
2.1.0, released 3 years ago by an unverified publisher
Toggles between light and dark mode and persists the preference.
What it does
It provides widgets and utilities to easily toggle and persist the theme mode of a Flutter application using shared_preferences. It includes custom buttons and switches for changing the theme with animations.
AI-written summary of version 2.1.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want a simple way to add light and dark mode toggling to your app.
- You need automatic persistence of the user's theme selection.
Skip it when
- You need advanced dynamic theming beyond basic light/dark modes (like custom seed color pickers or multi-theme engines).
Strengths
- Automatically persists theme choices using shared_preferences.
- Comes with ready-to-use widgets like ReactiveThemeBtn and ReactiveSwitch.
Weaknesses
- Limited to light and dark mode toggling.
- Not documented for complex theme engines or custom palettes.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
None
ReactiveThemer(
savedThemeMode: savedThemeMode,
builder: (reactiveMode) => MaterialApp(
themeMode: reactiveMode,
theme: ThemeData(brightness: Brightness.light),
darkTheme: ThemeData(brightness: Brightness.dark),
home: const HomePage(),
),
);Alternatives
Packages that do the same job and could replace reactive_theme.
- adaptive_theme
Dynamic light and dark theme switching with persistence for Flutter.
82Compare - hugeicons
6,000+ free stroke-rounded SVG icons for Flutter with custom stroke width and color inheritance.
89Compare - theme_toggle_animation
Smooth animated theme switching for Flutter with circle, line, and custom GIF mask effects.
78Compare - easy_dynamic_theme
Automatically sync app theme with OS and persist user choice
50Compare
Works with
Packages commonly used together with reactive_theme: ones it builds on, ones built on it, and its own family.