lightThemeData top-level property Null safety

ThemeData lightThemeData

Implementation

ThemeData get lightThemeData => ThemeData.light().copyWith(
      primaryColor: primaryColor,
      scaffoldBackgroundColor: lightBackground,
      textButtonTheme: TextButtonThemeData(
        style: TextButton.styleFrom(
          shape: const RoundedRectangleBorder(),
          foregroundColor: ThemeData.light().textTheme.button!.color,
        ),
      ),
      colorScheme: const ColorScheme.light().copyWith(
        primary: primaryColor,
        secondary: secondaryColor,
        surface: Colors.white,
      ),
    );