Cinemapedia uses a singleDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/juuaaann456/DMI-Practica06/llms.txt
Use this file to discover all available pages before exploring further.
AppTheme class to define its visual style. The theme is created with Flutter’s Material 3 design system and a custom seed color that drives the entire color scheme.
AppTheme class
lib/config/theme/app_theme.dart
getTheme()
getTheme() returns a ThemeData instance configured with two key options:
| Option | Value | Effect |
|---|---|---|
useMaterial3 | true | Opts in to Material 3 components, typography, and motion |
colorSchemeSeed | Color(0xFF2862F5) | Generates the full color scheme from this single blue seed color |
How the theme is applied
TheAppTheme instance is created in MainApp.build() and passed directly to MaterialApp.router:
lib/main.dart
AppTheme() is instantiated on every build, the theme is stateless — there is no mutable theme state to manage.
Seed color
Material 3 derives an entire harmonious color scheme (primary, secondary, tertiary, surface, error, and their variants) from a singlecolorSchemeSeed. The current seed is:
Customizing the color scheme
To change the app’s color palette, replace the hex value passed tocolorSchemeSeed:
lib/config/theme/app_theme.dart
Extending the theme
Add further customisation by passing additional properties toThemeData:
The
AppTheme class currently exposes no constructor parameters. If you need runtime theme switching (e.g. dark mode toggle), add fields to AppTheme, pass them via the constructor, and manage the selected AppTheme instance with a Riverpod provider.