toolbar_items library
Exposes ToolbarItems for the components in this package.
Properties
- bold → ToolbarItem
-
Toolbar item that toggles the boldAttribute on the selected text.
final
- bulletList → ToolbarItem
-
Toolbar item that toggles the bulletListModifier for the focused line.
final
- italic → ToolbarItem
-
Toolbar item that toggles the italicAttribute on the selected text.
final
- title ↔ ToolbarItem
-
Toolbar item that toggles the HeadingModifier with level 1 for the
focused line.
getter/setter pair
- underline → ToolbarItem
-
Toolbar item that toggles the underlineAttribute on the selected text.
final
Functions
-
createToggleableToolbarItem(
String tooltip, TextAttribute attribute, IconData icon) → ToolbarItem - Helper function to easily create a toolbar item that toggles a specific attribute.
-
image(
{Future< ImageProvider< pickImage(BuildContext)?, Future<Object> ?>ImageProvider< snapImage(BuildContext)?}) → ToolbarItemObject> ?> - Create a toolbar item for inserting ImageEmbed.
-
link(
{String uriHintText = 'google.com', String processInput(String)?, FormFieldValidator< String> ? validator}) → ToolbarItem - Toolbar item that applies a LinkAttribute. Shows a dialog with a text field for the url.