light static method

ThemeData light({
  1. StockholmColor? accentColor,
})

Implementation

static ThemeData light({StockholmColor? accentColor}) {
  var theme = ThemeData.light();
  var colors = StockholmColors.fromBrightness(Brightness.light);
  accentColor ??= colors.blue;

  theme = _applySharedChanges(theme);

  return theme.copyWith(
    // primaryColorBrightness: Brightness.light,
    // primarySwatch: Colors.blue,
    visualDensity: VisualDensity.compact,
    backgroundColor: Colors.blueGrey[50],
    primaryColor: accentColor,
    indicatorColor: accentColor,
    highlightColor: Colors.black26,
    disabledColor: Colors.black26,
    colorScheme: theme.colorScheme.copyWith(
      primary: accentColor,
      secondary: accentColor.contrast,
    ),
    popupMenuTheme: theme.popupMenuTheme.copyWith(
      textStyle: theme.textTheme.bodyText2,
      color: Colors.grey.shade100,
    ),
    dialogTheme: theme.dialogTheme.copyWith(
        backgroundColor: Colors.white,
        shape: const RoundedRectangleBorder(
          borderRadius: BorderRadius.all(Radius.circular(12)),
          side: BorderSide(color: Colors.black12, width: 1.0),
        )),
    textTheme: theme.textTheme.copyWith(
      caption: theme.textTheme.caption!.copyWith(color: Colors.black38),
    ),
    iconTheme: theme.iconTheme.copyWith(
      color: Colors.grey[700],
    ),
  );
}