|
|
@@ -33,6 +33,9 @@ class ScanImageReplyView extends BaseView<ScanImageReplyController> {
|
|
|
/// 回复模式,切换按钮的GlobalKey
|
|
|
final GlobalKey _replyModeSwitchBtnAnchorKey = GlobalKey();
|
|
|
|
|
|
+ /// 显示回复语气弹窗的锚点组件的GlobalKey
|
|
|
+ final GlobalKey _replyToneOptionAttachGlobalKey = GlobalKey();
|
|
|
+
|
|
|
@override
|
|
|
Color backgroundColor() {
|
|
|
return Colors.transparent;
|
|
|
@@ -291,7 +294,7 @@ class ScanImageReplyView extends BaseView<ScanImageReplyController> {
|
|
|
child: ReplyToneOptionList(
|
|
|
replyToneOptionSelectConfigList:
|
|
|
controller.replyToneOptionSelectConfigList.value,
|
|
|
- onSelectOpenCallback: (rowConfig, optionItem) {
|
|
|
+ onSelectOptionCallback: (rowConfig, optionItem) {
|
|
|
controller.selectReplyToneOption(rowConfig, optionItem);
|
|
|
},
|
|
|
),
|
|
|
@@ -317,6 +320,7 @@ class ScanImageReplyView extends BaseView<ScanImageReplyController> {
|
|
|
borderRadius: BorderRadius.all(Radius.circular(20.r)),
|
|
|
),
|
|
|
child: Column(
|
|
|
+ key: _replyToneOptionAttachGlobalKey,
|
|
|
children: [
|
|
|
Container(
|
|
|
margin: EdgeInsets.only(top: 10.h, bottom: 18.h),
|
|
|
@@ -431,30 +435,38 @@ class ScanImageReplyView extends BaseView<ScanImageReplyController> {
|
|
|
|
|
|
/// 再试试按钮
|
|
|
Widget _buildRetryBtn() {
|
|
|
- return GestureDetector(
|
|
|
- onTap: () {
|
|
|
- controller.clickRetryBtn();
|
|
|
- },
|
|
|
- child: Container(
|
|
|
- padding: EdgeInsets.symmetric(horizontal: 28.w, vertical: 8.h),
|
|
|
- decoration: BoxDecoration(
|
|
|
- // 渐变背景
|
|
|
- gradient: LinearGradient(
|
|
|
- colors: [ColorName.purpleGradient3, ColorName.purpleGradient4],
|
|
|
- begin: Alignment.centerLeft,
|
|
|
- end: Alignment.centerRight,
|
|
|
- ),
|
|
|
- borderRadius: BorderRadius.all(Radius.circular(30.r)),
|
|
|
- ),
|
|
|
- child: Text(
|
|
|
- StringName.retry,
|
|
|
- style: TextStyle(
|
|
|
- color: ColorName.white,
|
|
|
- fontSize: 14.sp,
|
|
|
- fontWeight: FontWeight.w400,
|
|
|
+ return Builder(
|
|
|
+ builder: (context) {
|
|
|
+ return GestureDetector(
|
|
|
+ onTap: () {
|
|
|
+ controller.clickRetryBtn(context);
|
|
|
+ // controller.toggleReplyToneOptionAttachDialog(
|
|
|
+ // context,
|
|
|
+ // _replyToneOptionAttachGlobalKey,
|
|
|
+ // );
|
|
|
+ },
|
|
|
+ child: Container(
|
|
|
+ padding: EdgeInsets.symmetric(horizontal: 28.w, vertical: 8.h),
|
|
|
+ decoration: BoxDecoration(
|
|
|
+ // 渐变背景
|
|
|
+ gradient: LinearGradient(
|
|
|
+ colors: [ColorName.purpleGradient3, ColorName.purpleGradient4],
|
|
|
+ begin: Alignment.centerLeft,
|
|
|
+ end: Alignment.centerRight,
|
|
|
+ ),
|
|
|
+ borderRadius: BorderRadius.all(Radius.circular(30.r)),
|
|
|
+ ),
|
|
|
+ child: Text(
|
|
|
+ StringName.retry,
|
|
|
+ style: TextStyle(
|
|
|
+ color: ColorName.white,
|
|
|
+ fontSize: 14.sp,
|
|
|
+ fontWeight: FontWeight.w400,
|
|
|
+ ),
|
|
|
+ ),
|
|
|
),
|
|
|
- ),
|
|
|
- ),
|
|
|
+ );
|
|
|
+ },
|
|
|
);
|
|
|
}
|
|
|
|