fix scam alert buttons overflow

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
This commit is contained in:
Sahil Yeole 2023-10-10 22:48:23 +05:30
parent 20a4cd49de
commit ab982e86c3

View File

@ -368,7 +368,9 @@ class _ScamWarningDialogState extends State<ScamWarningDialog> {
Row( Row(
mainAxisAlignment: MainAxisAlignment.end, mainAxisAlignment: MainAxisAlignment.end,
children: [ children: [
ElevatedButton( Container(
constraints: BoxConstraints(maxWidth: 150),
child: ElevatedButton(
onPressed: isButtonLocked onPressed: isButtonLocked
? null ? null
: () { : () {
@ -387,10 +389,15 @@ class _ScamWarningDialogState extends State<ScamWarningDialog> {
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
fontSize: 13.0, fontSize: 13.0,
), ),
maxLines: 2,
overflow: TextOverflow.ellipsis,
),
), ),
), ),
SizedBox(width: 15), SizedBox(width: 15),
ElevatedButton( Container(
constraints: BoxConstraints(maxWidth: 150),
child: ElevatedButton(
onPressed: () { onPressed: () {
Navigator.of(context).pop(); Navigator.of(context).pop();
}, },
@ -403,6 +410,9 @@ class _ScamWarningDialogState extends State<ScamWarningDialog> {
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
fontSize: 13.0, fontSize: 13.0,
), ),
maxLines: 2,
overflow: TextOverflow.ellipsis,
),
), ),
), ),
], ],