fix: add support for query schemes in example app (#279)
This commit is contained in:
parent
070ceb3e27
commit
f6584b9f48
1 changed files with 70 additions and 67 deletions
|
|
@ -61,9 +61,15 @@ class _HomePageState extends State<HomePage> {
|
|||
void reassemble() {
|
||||
super.reassemble();
|
||||
|
||||
_jsonString = Future.value(
|
||||
jsonEncode(_editorState.document.toJson()),
|
||||
);
|
||||
_widgetBuilder = (context) => SimpleEditor(
|
||||
jsonString: _jsonString,
|
||||
onEditorStateChange: (editorState) {
|
||||
_editorState = editorState;
|
||||
_jsonString = Future.value(
|
||||
jsonEncode(_editorState.document.toJson()),
|
||||
);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
|
|
@ -74,6 +80,7 @@ class _HomePageState extends State<HomePage> {
|
|||
drawer: _buildDrawer(context),
|
||||
appBar: AppBar(
|
||||
backgroundColor: Theme.of(context).colorScheme.inversePrimary,
|
||||
surfaceTintColor: Colors.transparent,
|
||||
title: const Text('AppFlowy Editor'),
|
||||
),
|
||||
body: SafeArea(child: _buildBody(context)),
|
||||
|
|
|
|||
Loading…
Reference in a new issue