CssBuilder class

Class used to build the CSS string for the editor.

The CSS will be based of current Theme.colorScheme to ensure the editor is always displayed with the correct colors. Both in light and dark modes.

Constructors

CssBuilder()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

buildCss({required ThemeData theme, bool hideStatusBar = true}) String
Build the CSS for Summernote editor
buttonsHovered({required ColorScheme colorScheme}) String
Build the CSS for buttons when they are hovered/focused =>
closeButton({required ColorScheme colorScheme}) String
Build CSS for close (X) buttons
dialog({required ColorScheme colorScheme}) String
Build the CSS for dialog
editor({required ColorScheme colorScheme}) String
Build the css for the Summernote editor, using Theme.colorScheme to adhere to Material 2.0.
editorDisabled({required ThemeData theme}) String
Build the CSS for the Summernote editor, when it's disabled.
elementCss({required String selector, required Map<String, String> properties}) String
Build CSS for an html element.
elevatedButton({required ColorScheme colorScheme}) String
Build the CSS for buttons
hexFromColor({Color? color}) String
Get the hex code for the color.
Build the CSS for modal dialog
placeholder({required ColorScheme colorScheme}) String
Build the CSS for the placeholder
statusBar() String
Build the CSS to hide the status bar
textInput({required ColorScheme colorScheme}) String
Build CSS for text inputs
urls({required ColorScheme colorScheme}) String
Build the CSS for URLs