Tencent / tdesign-flutter

A Flutter UI components lib for TDesign.
https://tdesign.tencent.com/flutter
642 stars 92 forks source link

[TDSlidePopupRoute] 在有输入框的页面上弹出,激活输入框会平移到顶部 #388

Open applebest opened 9 hours ago

applebest commented 9 hours ago

tdesign-flutter 版本

0.1.7

重现链接

No response

重现步骤

 Navigator.of(context).push(TDSlidePopupRoute(
        modalBarrierColor: rgba(0, 0, 0, 0.80),
        slideTransitionFrom: SlideTransitionFrom.bottom,
        builder: (context) {
          return AnimatedPadding(
            padding: MediaQuery.of(context).viewInsets,
            duration: const Duration(milliseconds: 100),
            curve: Curves.decelerate,

            child: QuestionFeedback(
              feedbackOptions: controller.state.feedbackModel.data.orDefault,
              onSubmit: (int? index, String description,
                  dynamic Function() onSuccess) {
                controller.feedBackDescription = description;
                controller.state.feedBackSelectedIndex = index;
                controller.submitFeedback(success: onSuccess);
              },
            ),
          );
        }));

期望结果

和0.1.6的效果保持一致,只向上平移键盘高度

实际结果

No response

Flutter版本

No response

设备与机型信息

No response

系统版本

No response

补充说明

No response

github-actions[bot] commented 9 hours ago

👋 @applebest,感谢给 TDesign 提出了 issue。 请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。