mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-01 00:28:18 +08:00
opt: save reply
This commit is contained in:
@@ -402,6 +402,7 @@ class AboutController extends GetxController {
|
|||||||
context: context,
|
context: context,
|
||||||
builder: (context) {
|
builder: (context) {
|
||||||
return SimpleDialog(
|
return SimpleDialog(
|
||||||
|
clipBehavior: Clip.hardEdge,
|
||||||
title: const Text('问题反馈(建议直接加群反馈)'),
|
title: const Text('问题反馈(建议直接加群反馈)'),
|
||||||
children: [
|
children: [
|
||||||
ListTile(
|
ListTile(
|
||||||
|
|||||||
@@ -98,7 +98,10 @@ class _ReplyPageState extends State<ReplyPage>
|
|||||||
highlightColor: Colors.transparent,
|
highlightColor: Colors.transparent,
|
||||||
splashColor: Colors.transparent,
|
splashColor: Colors.transparent,
|
||||||
splashFactory: NoSplashFactory(),
|
splashFactory: NoSplashFactory(),
|
||||||
onTap: Get.back,
|
onTap: () {
|
||||||
|
FocusScope.of(context).unfocus();
|
||||||
|
Get.back();
|
||||||
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
_buildInputView(),
|
_buildInputView(),
|
||||||
@@ -386,5 +389,8 @@ class _ReplyPageState extends State<ReplyPage>
|
|||||||
selection:
|
selection:
|
||||||
TextSelection.collapsed(offset: cursorPosition + emote.text!.length),
|
TextSelection.collapsed(offset: cursorPosition + emote.text!.length),
|
||||||
);
|
);
|
||||||
|
if (widget.onSaveReply != null) {
|
||||||
|
widget.onSaveReply!(_replyContentController.text);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -94,7 +94,6 @@ class CacheManage {
|
|||||||
),
|
),
|
||||||
TextButton(
|
TextButton(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
Get.back();
|
|
||||||
SmartDialog.showLoading(msg: '正在清除...');
|
SmartDialog.showLoading(msg: '正在清除...');
|
||||||
try {
|
try {
|
||||||
// 清除缓存 图片缓存
|
// 清除缓存 图片缓存
|
||||||
@@ -106,6 +105,7 @@ class CacheManage {
|
|||||||
SmartDialog.dismiss();
|
SmartDialog.dismiss();
|
||||||
SmartDialog.showToast(err.toString());
|
SmartDialog.showToast(err.toString());
|
||||||
}
|
}
|
||||||
|
Get.back();
|
||||||
},
|
},
|
||||||
child: const Text('确认'),
|
child: const Text('确认'),
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:get/get.dart';
|
|
||||||
|
|
||||||
extension ImageExtension on num {
|
extension ImageExtension on num {
|
||||||
int cacheSize(BuildContext context) {
|
int cacheSize(BuildContext context) {
|
||||||
|
|||||||
Reference in New Issue
Block a user