From dcbaf01118cdd0dc6198617feebbd024368738b9 Mon Sep 17 00:00:00 2001 From: M Date: Fri, 25 Sep 2020 14:25:08 +0300 Subject: [PATCH] Fixes mergina and peddings for actions button on dashboard screen --- lib/src/screens/dashboard/dashboard_page.dart | 31 +++++++------------ .../dashboard/widgets/action_button.dart | 2 -- 2 files changed, 12 insertions(+), 21 deletions(-) diff --git a/lib/src/screens/dashboard/dashboard_page.dart b/lib/src/screens/dashboard/dashboard_page.dart index fc538834a..16cce7518 100644 --- a/lib/src/screens/dashboard/dashboard_page.dart +++ b/lib/src/screens/dashboard/dashboard_page.dart @@ -103,28 +103,21 @@ class DashboardPage extends BasePage { activeDotColor: Colors.white), )), Container( - width: double.infinity, - padding: EdgeInsets.only( - left: 45, - right: 45, - bottom: 24 - ), + padding: EdgeInsets.only(left: 45, right: 45, bottom: 24), child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ - Flexible( - child: ActionButton( - image: sendImage, - title: S.of(context).send, - route: Routes.send, - alignment: Alignment.centerLeft, - ), + ActionButton( + image: sendImage, + title: S.of(context).send, + route: Routes.send, + alignment: Alignment.centerLeft, ), - Flexible( - child: ActionButton( - image: exchangeImage, - title: S.of(context).exchange, - route: Routes.exchange - ), + ActionButton( + image: sendImage, + title: S.of(context).send, + route: Routes.send, + alignment: Alignment.centerLeft, ), ], ), diff --git a/lib/src/screens/dashboard/widgets/action_button.dart b/lib/src/screens/dashboard/widgets/action_button.dart index 3cf1d6ded..dc9a64bbf 100644 --- a/lib/src/screens/dashboard/widgets/action_button.dart +++ b/lib/src/screens/dashboard/widgets/action_button.dart @@ -15,8 +15,6 @@ class ActionButton extends StatelessWidget { @override Widget build(BuildContext context) { return Container( - width: double.infinity, - height: 93, alignment: alignment, child: Column( mainAxisSize: MainAxisSize.max,