Skip to content

SashaKryzh/flutter_custom_theme_example

Repository files navigation

Flutter Custom App Theme with ThemeExtension (Example + Template)

Flutter Custom App Theme with ThemeExtension

This is a simple Flutter custom theme example with ThemeExtension for custom colors and text styles.

⭐️ Article on Medium

Files navigation

app_theme.dart - simple AppTheme template with ChangeNotifier for changing ThemeMode and ThemeExtension for custom colors.

app_colors_extension.dart - template for custom colors extension (GitHub Gist).

app_text_theme_extension.dart - template on how to define custom text theme extension (GitHub Gist).

app_palette.dart - example on how to define custom color palette with 2 approaches to group colors.

app_typography.dart - example on how to define custom typography.

main.dart - usage example.


Flutter version: 3.10.1

About

Flutter simple custom application theme example. Templates for AppTheme, ThemeExtension for custom colors and text styles.

Topics

Resources

License

Stars

Watchers

Forks