dark static method
Implementation
static ThemeData dark({StockholmColor? accentColor}) {
var theme = ThemeData.dark();
var colors = StockholmColors.fromBrightness(Brightness.dark);
accentColor ??= colors.blue;
theme = _applySharedChanges(theme);
return theme.copyWith(
primaryColor: accentColor,
popupMenuTheme: theme.popupMenuTheme.copyWith(
textStyle: theme.textTheme.bodyText2,
color: Colors.grey.shade900,
),
colorScheme: theme.colorScheme.copyWith(
primary: accentColor,
secondary: accentColor.contrast,
),
indicatorColor: accentColor,
scaffoldBackgroundColor: Colors.grey[900],
backgroundColor: const Color.fromRGBO(44, 44, 44, 1.0),
canvasColor: const Color.fromRGBO(38, 38, 38, 1.0),
hoverColor: Colors.white12,
cardColor: Colors.grey[900],
dividerColor: Colors.white24,
selectedRowColor: Colors.white12,
dialogTheme: theme.dialogTheme.copyWith(
backgroundColor: const Color.fromRGBO(44, 44, 44, 1.0),
shape: RoundedRectangleBorder(
borderRadius: const BorderRadius.all(Radius.circular(12)),
side: BorderSide(color: Colors.grey[700]!, width: 1.0),
),
),
);
}