diff --git a/lib/pages/about/index.dart b/lib/pages/about/index.dart index 8627e5146..e749b5e47 100644 --- a/lib/pages/about/index.dart +++ b/lib/pages/about/index.dart @@ -402,6 +402,7 @@ class AboutController extends GetxController { context: context, builder: (context) { return SimpleDialog( + clipBehavior: Clip.hardEdge, title: const Text('问题反馈(建议直接加群反馈)'), children: [ ListTile( diff --git a/lib/pages/video/detail/reply_new/reply_page.dart b/lib/pages/video/detail/reply_new/reply_page.dart index cc0fbd9e6..2dcc9259b 100644 --- a/lib/pages/video/detail/reply_new/reply_page.dart +++ b/lib/pages/video/detail/reply_new/reply_page.dart @@ -98,7 +98,10 @@ class _ReplyPageState extends State highlightColor: Colors.transparent, splashColor: Colors.transparent, splashFactory: NoSplashFactory(), - onTap: Get.back, + onTap: () { + FocusScope.of(context).unfocus(); + Get.back(); + }, ), ), _buildInputView(), @@ -386,5 +389,8 @@ class _ReplyPageState extends State selection: TextSelection.collapsed(offset: cursorPosition + emote.text!.length), ); + if (widget.onSaveReply != null) { + widget.onSaveReply!(_replyContentController.text); + } } } diff --git a/lib/utils/cache_manage.dart b/lib/utils/cache_manage.dart index 6be7e6f1b..48a73659f 100644 --- a/lib/utils/cache_manage.dart +++ b/lib/utils/cache_manage.dart @@ -94,7 +94,6 @@ class CacheManage { ), TextButton( onPressed: () async { - Get.back(); SmartDialog.showLoading(msg: '正在清除...'); try { // 清除缓存 图片缓存 @@ -106,6 +105,7 @@ class CacheManage { SmartDialog.dismiss(); SmartDialog.showToast(err.toString()); } + Get.back(); }, child: const Text('确认'), ) diff --git a/lib/utils/extension.dart b/lib/utils/extension.dart index b522b85c5..f794a3b27 100644 --- a/lib/utils/extension.dart +++ b/lib/utils/extension.dart @@ -1,5 +1,4 @@ import 'package:flutter/material.dart'; -import 'package:get/get.dart'; extension ImageExtension on num { int cacheSize(BuildContext context) {