lightTheme static method

ThemeData lightTheme({
  1. Color? primary,
  2. Color? onPrimary,
  3. Color? secondary,
  4. Color? onSecondary,
})

Implementation

static ThemeData lightTheme({
  Color? primary,
  Color? onPrimary,
  Color? secondary,
  Color? onSecondary,
}) =>
    ThemeData.from(
      useMaterial3: true,
      colorScheme: ColorScheme.light(
        primary: primary ?? const Color(0xff18181b),
        onPrimary: secondary ?? const Color(0xfffafafa),
        secondary: secondary ?? const Color(0xfff4f4f5),
        onSecondary: onSecondary ?? const Color(0xff18181b),
        surface: const Color(0xfffffff1),
        onSurface: const Color(0xff09090b),
        surfaceContainer: const Color(0xffffffff),
        error: const Color(0xffdd524c),
        onError: const Color(0xfffafafa),
      ),
    ).copyWith(
      dividerColor: const Color(0xffe4e4e7),
      splashFactory: NoSplash.splashFactory,
      iconTheme: const IconThemeData(
        size: 20,
      ),
      floatingActionButtonTheme: const FloatingActionButtonThemeData(
        elevation: 0,
        hoverElevation: 0,
        highlightElevation: 0,
        focusElevation: 0,
      ),
      materialTapTargetSize: MaterialTapTargetSize.padded,
    );