feat: add fixed toolbar example (#739)

* feat: add fixed toolbar example

* feat: highlight bold button if the selected text is all bold
This commit is contained in:
Lucas.Xu 2024-03-07 09:47:23 +08:00 • committed by GitHub
commit 014abd74fe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -7,6 +7,7 @@ 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/editor_list.dart';
import 'package:example/pages/fixed_toolbar_editor.dart';
import 'package:example/pages/focus_example_for_editor.dart';
import 'package:file_picker/file_picker.dart';
import 'package:flutter/foundation.dart';
@ -192,6 +193,14 @@ class _HomePageState extends State<HomePage> {
),
);
}),
_buildListTile(context, 'Fixed Toolbar', () {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => const FixedToolbarExample(),
),
);
}),
// Encoder Demo
_buildSeparator(context, 'Export To X Demo'),