ashilkn 2 年之前
父節點
當前提交
7994ceb28c
共有 1 個文件被更改,包括 3 次插入3 次删除
  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();
     }