fix: typo

This commit is contained in:
Lucas.Xu
2022-08-15 19:01:41 +08:00
parent f762a78ac0
commit ab1032139a
2 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@ List<String> defaultListToolbarEventNames = [
'H3', 'H3',
]; ];
mixin ToolBarMixin<T extends StatefulWidget> on State<T> { mixin ToolbarMixin<T extends StatefulWidget> on State<T> {
void hide(); void hide();
} }
@ -52,7 +52,7 @@ class ToolbarWidget extends StatefulWidget {
State<ToolbarWidget> createState() => _ToolbarWidgetState(); State<ToolbarWidget> createState() => _ToolbarWidgetState();
} }
class _ToolbarWidgetState extends State<ToolbarWidget> with ToolBarMixin { class _ToolbarWidgetState extends State<ToolbarWidget> with ToolbarMixin {
final GlobalKey _listToolbarKey = GlobalKey(); final GlobalKey _listToolbarKey = GlobalKey();
final toolbarHeight = 32.0; final toolbarHeight = 32.0;

View File

@ -49,7 +49,7 @@ class _FlowyToolbarState extends State<FlowyToolbar>
@override @override
void hide() { void hide() {
_toolbarWidgetKey.currentState?.unwrapOrNull<ToolBarMixin>()?.hide(); _toolbarWidgetKey.currentState?.unwrapOrNull<ToolbarMixin>()?.hide();
_toolbarOverlay?.remove(); _toolbarOverlay?.remove();
_toolbarOverlay = null; _toolbarOverlay = null;
} }