Merge pull request #762 from pangeachat/prevent-dialog-overflow

Make content issue dialog scrollable to prevent overflow
pull/1423/head
ggurdin 1 year ago committed by GitHub
commit 7e96871d6e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -36,21 +36,20 @@ class ContentIssueButton extends StatelessWidget {
L10n.of(context)!.reportContentIssueTitle, L10n.of(context)!.reportContentIssueTitle,
textAlign: TextAlign.center, textAlign: TextAlign.center,
), ),
content: Container( content: SingleChildScrollView(
constraints: const BoxConstraints(maxWidth: 300), child: Container(
child: Column( constraints: const BoxConstraints(maxWidth: 300),
mainAxisSize: MainAxisSize.min, child: Column(
children: [ mainAxisSize: MainAxisSize.min,
const BotFace( children: [
width: 60, const BotFace(
expression: BotExpression.addled, width: 60,
), expression: BotExpression.addled,
const SizedBox(height: 10), ),
Text(L10n.of(context)!.reportContentIssueDescription), const SizedBox(height: 10),
const SizedBox(height: 10), Text(L10n.of(context)!.reportContentIssueDescription),
SizedBox( const SizedBox(height: 10),
width: double.infinity, TextField(
child: TextField(
controller: feedbackController, controller: feedbackController,
decoration: InputDecoration( decoration: InputDecoration(
labelText: L10n.of(context)!.feedback, labelText: L10n.of(context)!.feedback,
@ -58,8 +57,8 @@ class ContentIssueButton extends StatelessWidget {
), ),
maxLines: 4, maxLines: 4,
), ),
), ],
], ),
), ),
), ),
actions: [ actions: [

Loading…
Cancel
Save