alerts UI fix (#539)

* fix alerts button UI

* remove comments
This commit is contained in:
Serhii 2022-10-20 01:28:49 +03:00 committed by GitHub
parent e1885e44a2
commit 3a9c8be9ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,21 +41,18 @@ class BaseAlertDialog extends StatelessWidget {
}
Widget actionButtons(BuildContext context) {
return Row(
return Container(
height: 52,
child: Row(
mainAxisSize: MainAxisSize.max,
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Flexible(
child: Container(
height: 52,
padding: EdgeInsets.only(left: 6, right: 6),
color: Theme.of(context).accentTextTheme!.bodyText1!.decorationColor!,
child: ButtonTheme(
minWidth: double.infinity,
child: Container(
width: double.infinity,
color: Theme.of(context).accentTextTheme!.bodyText1!.decorationColor!,
child: TextButton(
onPressed: actionLeft,
// FIX-ME: Style
//highlightColor: Colors.transparent,
//splashColor: Colors.transparent,
child: Text(
leftActionButtonText,
textAlign: TextAlign.center,
@ -68,24 +65,17 @@ class BaseAlertDialog extends StatelessWidget {
),
)),
),
)),
),
Container(
width: 1,
height: 52,
color: Theme.of(context).dividerColor,
),
Flexible(
child: Container(
height: 52,
padding: EdgeInsets.only(left: 6, right: 6),
color: Theme.of(context).accentTextTheme!.bodyText2!.backgroundColor!,
child: ButtonTheme(
minWidth: double.infinity,
child: Container(
width: double.infinity,
color: Theme.of(context).accentTextTheme!.bodyText2!.backgroundColor!,
child: TextButton(
onPressed: actionRight,
// FIX-ME: Style
//highlightColor: Colors.transparent,
//splashColor: Colors.transparent,
child: Text(
rightActionButtonText,
textAlign: TextAlign.center,
@ -98,9 +88,9 @@ class BaseAlertDialog extends StatelessWidget {
),
)),
),
)),
),
],
);
));
}
@override