ueman / feedback

A simple widget for getting better feedback.
https://pub.dev/packages/feedback
400 stars 98 forks source link

Feedback Screenshot is half when Keyboard is opened #323

Open alp950 opened 2 months ago

alp950 commented 2 months ago

Version

3.1.0

Library

feedback

Flutter channel

stable

Flutter version

3.24.0

Platform

Android, iOS

Details

When hitting submit button while the keyboard is opened the Screenshot is just half. IMG_3035 IMG_3034 IMG_3032 IMG_3033

Steps to reproduce

Step 1 - Open Betterfeedback Step 2 - Click on Textfield Step 3 - Click Submit while Keyboard is opened

Output of flutter doctor -v

No response

alp950 commented 2 months ago

The TextButton should be Updated with this

TextButton( key: const Key('submit_feedback_button'), child: Text( FeedbackLocalizations.of(context).submitButtonText, style: TextStyle( color: FeedbackTheme.of(context).activeFeedbackModeColor, ), ), onPressed: () => { MediaQuery.of(context).viewInsets.bottom > 0.0 ? FocusManager.instance.primaryFocus?.unfocus(); widget.onSubmit(controller.text), }

    ),