tofu_expressive 0.0.1
tofu_expressive: ^0.0.1 copied to clipboard
Material 3 expressive theme with dynamic color, dark/light mode, and platform support.
๐ง Tofu Expressive #
Tofu Expressive is a Flutter theme package built with Material 3 expressive design principles. It includes dynamic color support, dark/light mode switching (system and manual), and works across mobile and desktop platforms.
โจ Features #
- Material 3 expressive design
- Dynamic color support (Material You on Android 12+)
- Manual and system-based theme switching
- Works on Android, iOS, Web, macOS, Windows, and Linux
- Built using
flex_color_scheme
๐ฆ Installation #
Add this to your pubspec.yaml:
dependencies:
tofu_expressive: ^0.1.0
Then run:
flutter pub get
๐ Getting Started #
Wrap your app with a ChangeNotifierProvider and use the theme controller:
final themeController = ThemeController();
MaterialApp(
theme: TofuTheme.light(),
darkTheme: TofuTheme.dark(),
themeMode: themeController.themeMode,
);
To toggle the theme manually:
themeController.toggleTheme(isDarkMode);
Or to follow the system setting:
themeController.setThemeMode(ThemeMode.system);
๐งช Example #
See the example/ folder for a full sample Flutter app using Tofu Expressive.
๐ผ๏ธ Screenshots #
| Light Mode | Dark Mode |
|---|---|
| [light] | [dark] |
โ๏ธ Custom Seed Colors #
Want to apply your own seed color?
TofuTheme.light(Colors.teal);
TofuTheme.dark(Colors.teal);
๐ API Reference #
TofuTheme.light([Color? seedColor])TofuTheme.dark([Color? seedColor])ThemeController.toggleTheme(bool isDarkMode)ThemeController.setThemeMode(ThemeMode)
Link to Pub.dev #
๐ก Inspiration #
Based on Material 3 keynote color schemes and Google's expressive UI principles.
๐ ๏ธ Built With #
- Flutter
- flex_color_scheme
- dynamic_color
- provider
๐ License #
MIT License ยฉ 2025 Peter Kure
Made with ๐ for Flutter developers.