fix: unable to update selection sometimes when the editor lost focus (#509)
This commit is contained in:
parent
fbee8e3a6a
commit
d1b9084ffb
1 changed files with 115 additions and 3 deletions
|
|
@ -6,6 +6,7 @@ import 'dart:math';
|
|||
import 'package:appflowy_editor/appflowy_editor.dart';
|
||||
import 'package:example/pages/customize_theme_for_editor.dart';
|
||||
import 'package:example/pages/editor.dart';
|
||||
import 'package:example/pages/focus_example_for_editor.dart';
|
||||
import 'package:file_picker/file_picker.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
|
@ -154,7 +155,7 @@ class _HomePageState extends State<HomePage> {
|
|||
}),
|
||||
|
||||
// Theme Demo
|
||||
_buildSeparator(context, 'Theme Demo'),
|
||||
_buildSeparator(context, 'Showcases'),
|
||||
_buildListTile(context, 'Custom Theme', () {
|
||||
Navigator.push(
|
||||
context,
|
||||
|
|
@ -173,6 +174,14 @@ class _HomePageState extends State<HomePage> {
|
|||
textDirection: TextDirection.rtl,
|
||||
);
|
||||
}),
|
||||
_buildListTile(context, 'Focus Example', () {
|
||||
Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(
|
||||
builder: (context) => const FocusExampleForEditor(),
|
||||
),
|
||||
);
|
||||
}),
|
||||
|
||||
// Encoder Demo
|
||||
_buildSeparator(context, 'Export To X Demo'),
|
||||
|
|
|
|||
Loading…
Reference in a new issue