ashilkn 2 years ago
parent
commit
7994ceb28c
1 changed files with 3 additions and 3 deletions
  1. 3 3
      lib/ui/viewer/file/file_caption_widget.dart

+ 3 - 3
lib/ui/viewer/file/file_caption_widget.dart

@@ -66,7 +66,7 @@ class _FileCaptionWidgetState extends State<FileCaptionWidget> {
   final _focusNode = FocusNode();
   String? editedCaption;
   String hintText = fileCaptionDefaultHint;
-  Widget? keyboardTopButtoms;
+  Widget? keyboardTopButtons;
 
   @override
   void initState() {
@@ -172,12 +172,12 @@ class _FileCaptionWidgetState extends State<FileCaptionWidget> {
       editedCaption = caption;
     }
     final bool hasFocus = _focusNode.hasFocus;
-    keyboardTopButtoms ??= KeyboardTopButton(
+    keyboardTopButtons ??= KeyboardTopButton(
       onDoneTap: onDoneTap,
       onCancelTap: onCancelTap,
     );
     if (hasFocus) {
-      KeyboardOverlay.showOverlay(context, keyboardTopButtoms!);
+      KeyboardOverlay.showOverlay(context, keyboardTopButtons!);
     } else {
       KeyboardOverlay.removeOverlay();
     }