mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: typo
This commit is contained in:
@ -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;
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user