applowy_editor_fork 6.2.1
applowy_editor_fork: ^6.2.1 copied to clipboard
An independently maintained fork of AppFlowy Editor for Flutter, with updated dependencies and a fix for lists that jump when a footer is present.
import 'package:applowy_editor_fork/applowy_editor_fork.dart';
import 'package:flutter/material.dart';
void main() {
runApp(const EditorExample());
}
class EditorExample extends StatefulWidget {
const EditorExample({super.key});
@override
State<EditorExample> createState() => _EditorExampleState();
}
class _EditorExampleState extends State<EditorExample> {
final _editorState = EditorState.blank(withInitialText: true);
@override
void dispose() {
_editorState.dispose();
super.dispose();
}
@override
Widget build(BuildContext context) {
return MaterialApp(
localizationsDelegates: const [AppFlowyEditorLocalizations.delegate],
home: Scaffold(
appBar: AppBar(title: const Text('Rich-text editor')),
body: AppFlowyEditor(editorState: _editorState, autoFocus: true),
),
);
}
}