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: TextTheme(
displayMedium: TextStyle(
fontWeight: FontWeight.bold,
fontSize: 26,
),
headlineSmall: TextStyle(
color: Colors.grey,
fontSize: 20,
fontWeight: FontWeight.w400,
),
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),
),
),
),
),
);