Soft and gentle rich text editing for Flutter applications based on Zefyr. It uses a document model named Parchment based on Notus.
👉 Live demo here.
Full documentation can be found here.
Add Fleather to your dependencies.
dependencies:
flutter:
sdk: flutter
fleather: ^1.18.0
For a complete working project using Fleather, check our example.
FleatherController
document = ParchmentDocument.fromJson(json);
controller = FleatherController(document);
FleatherEditor
or FleatherField
with a FleatherToolbar
to your widgets.
Column(
children: [
FleatherToolbar.basic(controller: _controller!),
Expanded(
child: FleatherEditor(controller: controller),
),
//or
FleatherField(controller: controller)
],
),
For migration guides check out MIGRATION.md.