Fixes mergina and peddings for actions button on dashboard screen

This commit is contained in:
M 2020-09-25 14:25:08 +03:00
parent 9c1f726c43
commit dcbaf01118
2 changed files with 12 additions and 21 deletions

View file

@ -103,28 +103,21 @@ class DashboardPage extends BasePage {
activeDotColor: Colors.white), activeDotColor: Colors.white),
)), )),
Container( Container(
width: double.infinity, padding: EdgeInsets.only(left: 45, right: 45, bottom: 24),
padding: EdgeInsets.only(
left: 45,
right: 45,
bottom: 24
),
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[ children: <Widget>[
Flexible( ActionButton(
child: ActionButton(
image: sendImage, image: sendImage,
title: S.of(context).send, title: S.of(context).send,
route: Routes.send, route: Routes.send,
alignment: Alignment.centerLeft, alignment: Alignment.centerLeft,
), ),
), ActionButton(
Flexible( image: sendImage,
child: ActionButton( title: S.of(context).send,
image: exchangeImage, route: Routes.send,
title: S.of(context).exchange, alignment: Alignment.centerLeft,
route: Routes.exchange
),
), ),
], ],
), ),

View file

@ -15,8 +15,6 @@ class ActionButton extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Container( return Container(
width: double.infinity,
height: 93,
alignment: alignment, alignment: alignment,
child: Column( child: Column(
mainAxisSize: MainAxisSize.max, mainAxisSize: MainAxisSize.max,