buildCss static method

String buildCss({
  1. required ThemeData theme,
  2. bool hideStatusBar = true,
})

Build the CSS for Summernote editor

If hideStatusBar is true, the status bar will be hidden, using display: none; css.s

Implementation

static String buildCss({
  required ThemeData theme,
  bool hideStatusBar = true,
}) {
  final colorScheme = theme.colorScheme;
  return [
    editor(colorScheme: colorScheme),
    placeholder(colorScheme: colorScheme),
    dialog(colorScheme: colorScheme),
    urls(colorScheme: colorScheme),
    elevatedButton(colorScheme: colorScheme),
    buttonsHovered(colorScheme: colorScheme),
    modal(colorScheme: colorScheme),
    textInput(colorScheme: colorScheme),
    closeButton(colorScheme: colorScheme),
    editorDisabled(theme: theme),
    if (hideStatusBar) statusBar(),
  ].join("");
}