light static method

ThemeData light()

Implementation

static ThemeData light() {
  bool isIOS = false;
  //if (Platform.isIOS) {
  if (UniversalPlatform.isIOS) {
    isIOS = true;
  }
  return ThemeData(
    splashFactory: isIOS ? NoSplash.splashFactory : null,

    colorScheme: ColorScheme.fromSwatch(
      primarySwatch: AppColors.palette,
      accentColor: Colors.blueGrey,
      brightness: Brightness.light,
    ),
    appBarTheme: const AppBarTheme(
      systemOverlayStyle: SystemUiOverlayStyle(
        systemNavigationBarColor: Colors.transparent,
        statusBarBrightness: Brightness.light,
        statusBarIconBrightness: Brightness.dark,
        statusBarColor: Colors.transparent,
      ),
      elevation: 0,
      color: Colors.white,
      foregroundColor: Colors.black,
      titleTextStyle: TextStyle(
        color: Colors.black,
        fontSize: 17,
      ),
    ),
    scaffoldBackgroundColor: const Color(0XFFFBF9F9),
    cardTheme: const CardTheme(
      elevation: 10,
      shadowColor: Colors.black12,
    ),
    // inputDecorationTheme: const InputDecorationTheme(
    //   border: COutlineInputBorder(
    //     borderRadius: BorderRadius.all(
    //       Radius.circular(8),
    //     ),
    //   ),
    //   filled: true,
    //   fillColor: Colors.white,
    //   isCollapsed: true,
    // ),
    inputDecorationTheme: const InputDecorationTheme(
      border: OutlineInputBorder(
        borderRadius: BorderRadius.all(
          Radius.circular(8),
        ),
      ),
      // isCollapsed: true,
    ),

    elevatedButtonTheme: ElevatedButtonThemeData(
      style: ButtonStyle(
        splashFactory: InkSplash.splashFactory,
        // ignore: deprecated_member_use
        elevation: MaterialStateProperty.all<double>(0),
      ),
    ),
  );
}