darkTheme property
Implementation
static ThemeData darkTheme = ThemeData.dark().copyWith(
brightness: Brightness.dark,
canvasColor: Colors.transparent,
primaryColor: Color(0xff3d63ff),
scaffoldBackgroundColor: Color(0xff1b1b1b),
backgroundColor: Color(0xff252525),
appBarTheme: AppBarTheme(
actionsIconTheme: IconThemeData(
color: Color(0xffffffff),
),
color: Color(0xff2e343b),
iconTheme: IconThemeData(color: Color(0xffffffff), size: 24),
),
colorScheme: ColorScheme.dark(
primary: Color(0xff3d63ff),
primaryVariant: Color(0xff3d63ff),
secondary: Color(0xff00cc77),
secondaryVariant: Color(0xff00cc77),
background: Color(0xff252525),
onPrimary: Colors.white,
onBackground: Colors.white,
onSecondary: Colors.white,
surface: Color(0xff585e63),
),
cardTheme: CardTheme(
color: Color(0xff37404a),
shadowColor: Color(0xff000000),
elevation: 1,
margin: EdgeInsets.all(0),
),
iconTheme: IconThemeData(
color: Colors.white,
),
indicatorColor: Colors.white,
disabledColor: Color(0xffa3a3a3),
highlightColor: Colors.white,
inputDecorationTheme: InputDecorationTheme(
fillColor: Color(0xff3E444A),
focusedBorder: OutlineInputBorder(
borderRadius: BorderRadius.all(Radius.circular(4)),
borderSide: BorderSide(width: 1, color: Color(0xff3d63ff)),
),
enabledBorder: OutlineInputBorder(
borderRadius: BorderRadius.all(Radius.circular(4)),
borderSide: BorderSide(width: 1, color: Colors.white70),
),
border: OutlineInputBorder(
borderRadius: BorderRadius.all(Radius.circular(4)),
borderSide: BorderSide(width: 1, color: Colors.white70)),
),
dividerColor: Color(0xff363636),
errorColor: Colors.orange,
cardColor: Color(0xff282a2b),
splashColor: Colors.white.withAlpha(100),
floatingActionButtonTheme: FloatingActionButtonThemeData(
backgroundColor: Color(0xff3d63ff),
splashColor: Colors.white.withAlpha(100),
highlightElevation: 8,
elevation: 4,
focusColor: Color(0xff3d63ff),
hoverColor: Color(0xff3d63ff),
foregroundColor: Colors.white),
popupMenuTheme: PopupMenuThemeData(
color: Color(0xff37404a),
),
bottomAppBarTheme:
BottomAppBarTheme(color: Color(0xff464c52), elevation: 2),
tabBarTheme: TabBarTheme(
unselectedLabelColor: Color(0xff495057),
labelColor: Color(0xff3d63ff),
indicatorSize: TabBarIndicatorSize.label,
indicator: UnderlineTabIndicator(
borderSide: BorderSide(color: Color(0xff3d63ff), width: 2.0),
),
),
sliderTheme: SliderThemeData(
activeTrackColor: Color(0xff3d63ff),
inactiveTrackColor: Color(0xff3d63ff).withAlpha(100),
trackShape: RoundedRectSliderTrackShape(),
trackHeight: 4.0,
thumbColor: Color(0xff3d63ff),
thumbShape: RoundSliderThumbShape(enabledThumbRadius: 10.0),
overlayShape: RoundSliderOverlayShape(overlayRadius: 24.0),
tickMarkShape: RoundSliderTickMarkShape(),
inactiveTickMarkColor: Colors.red[100],
valueIndicatorShape: PaddleSliderValueIndicatorShape(),
valueIndicatorTextStyle: TextStyle(
color: Colors.white,
),
),
cupertinoOverrideTheme: CupertinoThemeData());