Fixes mergina and peddings for actions button on dashboard screen

M committed Sep 25, 2020 at 14:25 UTC dcbaf01118cdd0dc6198617feebbd024368738b9
2 files changed +12 -21
lib/src/screens/dashboard/dashboard_page.dart
+12 -19
@@ -103,28 +103,21 @@ class DashboardPage extends BasePage {
103 activeDotColor: Colors.white),
104 )),
105 Container(
106 - width: double.infinity,
107 - padding: EdgeInsets.only(
108 - left: 45,
109 - right: 45,
110 - bottom: 24
111 - ),
106 + padding: EdgeInsets.only(left: 45, right: 45, bottom: 24),
107 child: Row(
108 + mainAxisAlignment: MainAxisAlignment.spaceBetween,
109 children: <Widget>[
114 - Flexible(
115 - child: ActionButton(
116 - image: sendImage,
117 - title: S.of(context).send,
118 - route: Routes.send,
119 - alignment: Alignment.centerLeft,
120 - ),
110 + ActionButton(
111 + image: sendImage,
112 + title: S.of(context).send,
113 + route: Routes.send,
114 + alignment: Alignment.centerLeft,
115 ),
122 - Flexible(
123 - child: ActionButton(
124 - image: exchangeImage,
125 - title: S.of(context).exchange,
126 - route: Routes.exchange
127 - ),
116 + ActionButton(
117 + image: sendImage,
118 + title: S.of(context).send,
119 + route: Routes.send,
120 + alignment: Alignment.centerLeft,
121 ),
122 ],
123 ),
lib/src/screens/dashboard/widgets/action_button.dart
-2
@@ -15,8 +15,6 @@ class ActionButton extends StatelessWidget {
15 @override
16 Widget build(BuildContext context) {
17 return Container(
18 - width: double.infinity,
19 - height: 93,
18 alignment: alignment,
19 child: Column(
20 mainAxisSize: MainAxisSize.max,