Open sils opened 2 years ago
I guess this relates to https://github.com/ueman/feedback/issues/166
I found this issue, well a workaround for it anyway. You need to increase the wait duration of the sendfeedback function here:
static Future<void> _sendFeedback(
BuildContext context,
OnFeedbackCallback onFeedbackSubmitted,
ScreenshotController controller,
String feedback,
double pixelRatio, {
Duration delay = const Duration(milliseconds: 2000), //iI increased this to 2 seconds. Not sure what the minumim value is to get it working.
bool showKeyboard = false,
Map<String, dynamic>? extras,
}) async {
// Your logic here
if (!showKeyboard) {
_hideKeyboard(context);
}
await sendFeedback(
onFeedbackSubmitted,
controller,
feedback,
pixelRatio,
delay: delay,
extras: extras,
);
// Close feedback mode
// ignore: use_build_context_synchronously
BetterFeedback.of(context).hide();
}
static void _hideKeyboard(BuildContext context) {
FocusScope.of(context).requestFocus(FocusNode());
}
}
Edit: This isnt the fix. For some reason now its not working. There is something else funny going on. Cant pinpoint it. Maybe this is a hint towards the fix so il leave this comment here.
any update?
@ueman I'm having the same issue do you think it got introduced in a specific version of is it an old issue?
Version
2.2.0
Library
feedback_sentry
Flutter channel
stable
Flutter version
2.8.1
Platform
Android
Details
After closing the feedback screen, the whole app seems to be offset in position by a small random X and Y amount of pixels.
See the gray border on the top of this screenshot:
The position changes from time to time, I've also had the whole app shifting both vertically and horizontally.
Steps to reproduce
Output of
flutter doctor -v