editor static method

String editor({
  1. required ColorScheme colorScheme,
})

Build the css for the Summernote editor, using Theme.colorScheme to adhere to Material 2.0.

Implementation

static String editor({required ColorScheme colorScheme}) => elementCss(
      selector: '.note-editable',
      properties: {
        'color': hexFromColor(color: colorScheme.onSurface),
        'background-color': hexFromColor(color: colorScheme.surface),
      },
    );