lightTheme static method

dynamic lightTheme()

Returns the light theme configuration for the app.

Implementation

static ThemeData lightTheme() {
  return ThemeData(
    /// Defines the color scheme using a primary seed color.
    colorScheme: ColorScheme.fromSeed(seedColor: primaryColor),

    /// Enables Material 3 design elements.
    useMaterial3: true,

    /// Sets the brightness to light mode.
    brightness: Brightness.light,

    /// Customizes the AppBar appearance.
    appBarTheme: AppBarTheme(
      backgroundColor: primaryColor,
      foregroundColor: Colors.white,
    ),

    /// Defines the default button color.
    buttonTheme: ButtonThemeData(buttonColor: primaryColor),

    /// Customizes the FloatingActionButton color.
    floatingActionButtonTheme: FloatingActionButtonThemeData(
      backgroundColor: primaryColor,
    ),
  );
}