Skip to content

Commit e10be73

Browse files
feat(feedback): Add option to disable keyboard resize (#3154)
1 parent b3c2fc5 commit e10be73

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
- Add `sentry.origin` to logs created by `LoggingIntegration` ([#3153](https://github.com/getsentry/sentry-dart/pull/3153))
88
- Tag all spans with thread info on non-web platforms ([#3101](https://github.com/getsentry/sentry-dart/pull/3101), [#3144](https://github.com/getsentry/sentry-dart/pull/3144))
9+
- feat(feedback): Add option to disable keyboard resize ([#3154](https://github.com/getsentry/sentry-dart/pull/3154))
910

1011
## 9.7.0-beta.1
1112

packages/flutter/lib/src/feedback/sentry_feedback_options.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ class SentryFeedbackOptions {
2525
/// Displays the capture screenshot button on the feedback form
2626
var showCaptureScreenshot = true;
2727

28+
/// Determines whether the feedback view should resize to avoid the keyboard.
29+
var resizeToAvoidBottomInset = true;
30+
2831
// Form Labels Configuration
2932

3033
/// The title of the feedback form.

packages/flutter/lib/src/feedback/sentry_feedback_widget.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ class _SentryFeedbackWidgetState extends State<SentryFeedbackWidget> {
117117
@override
118118
Widget build(BuildContext context) {
119119
return Scaffold(
120+
resizeToAvoidBottomInset: widget.options.resizeToAvoidBottomInset,
120121
appBar: AppBar(
121122
title: Text(widget.options.title),
122123
actions: [

0 commit comments

Comments
 (0)