docsy_toolbar 0.1.1 copy "docsy_toolbar: ^0.1.1" to clipboard
docsy_toolbar: ^0.1.1 copied to clipboard

A customizable toolbar for the Docsy Flutter editor. Includes ready-made buttons (bold, italic, headings, lists, links, images) with easy integration.

Docsy Toolbar #

A simple, customizable toolbar for the Docsy WYSIWYG editor.
It provides buttons for common text formatting actions (bold, italic, underline, links, headings, dividers, undo/redo, and more).

Try it Live


✨ Features #

  • Bold / Italic / Underline toggles
  • Insert & remove links
  • Insert headings and dividers
  • Undo / Redo integration
  • Works seamlessly with the EditorController from Docsy

📦 Installation #

Add both docsy and docsy_toolbar to your pubspec.yaml:

dependencies:
  docsy: ^0.1.0
  docsy_toolbar: ^0.1.0

Then run:

flutter pub get

🚀 Usage #

import 'package:docsy/docsy.dart';
import 'package:docsy_toolbar/docsy_toolbar.dart';
import 'package:flutter/material.dart';

class MyEditorPage extends StatefulWidget {
  const MyEditorPage({super.key});

  @override
  State<MyEditorPage> createState() => _MyEditorPageState();
}

class _MyEditorPageState extends State<MyEditorPage> {
  final controller = EditorController.empty();

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: const Text('Docsy Editor with Toolbar')),
      body: Column(
        children: [
          // The toolbar
          DocsyToolbar(controller: controller),

          const Divider(),

          // The editor itself
          Expanded(
            child: RichTextEditor(controller: controller),
          ),
        ],
      ),
    );
  }
}

📷 Screenshots #


Editing with toolbar Toolbar + links


Editing Readonly



📝 License #

This package is distributed under the MIT License.
See LICENSE for details.

2
likes
150
points
35
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A customizable toolbar for the Docsy Flutter editor. Includes ready-made buttons (bold, italic, headings, lists, links, images) with easy integration.

Homepage
Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

docsy, flutter

More

Packages that depend on docsy_toolbar