ToolbarTheme.fallback constructor

ToolbarTheme.fallback(
  1. BuildContext context
)

Creates default theme for editor toolbar.

Implementation

factory ToolbarTheme.fallback(BuildContext context) {
  final theme = Theme.of(context);
  return ToolbarTheme._(
    color: theme.primaryColorBrightness == Brightness.light
        ? Colors.grey.shade300
        : Colors.grey.shade800,
    toggleColor: theme.primaryColorBrightness == Brightness.light
        ? Colors.grey.shade400
        : Colors.grey.shade900,
    iconColor: theme.primaryIconTheme.color,
    disabledIconColor: theme.disabledColor,
  );
}