nuntioDarkTheme top-level property
Implementation
ThemeData nuntioDarkTheme = ThemeData.dark().copyWith(
scaffoldBackgroundColor: Color(0xff131313),
primaryColor: primaryColor,
dividerColor: darkBorderColor,
buttonTheme: ButtonThemeData(height: buttonHeight),
inputDecorationTheme: InputDecorationTheme(
enabledBorder: OutlineInputBorder(
borderSide: BorderSide(
width: borderWidth,
color: darkBorderColor,
),
borderRadius: BorderRadius.circular(borderRadius),
),
focusedBorder: OutlineInputBorder(
borderSide: BorderSide(
width: borderWidth,
color: primaryColor,
),
borderRadius: BorderRadius.circular(borderRadius),
),
disabledBorder: OutlineInputBorder(
borderSide: BorderSide(
width: borderWidth,
color: darkBorderColor,
),
borderRadius: BorderRadius.circular(borderRadius),
),
errorBorder: OutlineInputBorder(
borderSide: BorderSide(
width: borderWidth,
color: errorColor,
),
borderRadius: BorderRadius.circular(borderRadius),
),
focusedErrorBorder: OutlineInputBorder(
borderSide: BorderSide(
width: borderWidth,
color: errorColor,
),
borderRadius: BorderRadius.circular(borderRadius),
),
border: OutlineInputBorder(
borderSide: BorderSide(
width: borderWidth,
color: darkBorderColor,
),
borderRadius: BorderRadius.circular(borderRadius),
),
),
textTheme: const TextTheme(
displayMedium: TextStyle(
color: Colors.white,
fontWeight: FontWeight.bold,
fontSize: 26,
),
bodySmall: TextStyle(color: Colors.white),
bodyMedium: TextStyle(color: Colors.white),
headlineSmall: TextStyle(
color: Colors.grey,
fontSize: 20,
fontWeight: FontWeight.w400,
),
labelLarge: TextStyle(color: Colors.white),
bodyLarge: TextStyle(color: Colors.black, fontSize: 16),
),
textButtonTheme: TextButtonThemeData(
style: ButtonStyle(
shape: MaterialStateProperty.all<RoundedRectangleBorder>(
RoundedRectangleBorder(
borderRadius: BorderRadius.circular(borderRadius),
),
),
),
),
elevatedButtonTheme: ElevatedButtonThemeData(
style: ButtonStyle(
textStyle:
MaterialStateProperty.all<TextStyle>(TextStyle(color: Colors.black)),
backgroundColor: MaterialStateProperty.all<Color>(Colors.white),
elevation: MaterialStateProperty.all<double>(0),
shape: MaterialStateProperty.all<RoundedRectangleBorder>(
RoundedRectangleBorder(
borderRadius: BorderRadius.circular(borderRadius),
),
),
),
),
);