Skip to content
pubscout

reactive_theme

2.1.0, released 3 years ago by an unverified publisher

Toggles between light and dark mode and persists the preference.

WASM-readyUnverified publisher
$ flutter pub add reactive_theme
Source repository

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.

Works with

Packages commonly used together with reactive_theme: ones it builds on, ones built on it, and its own family.