From bc65ed185894d036197657cdf843067cab79007e Mon Sep 17 00:00:00 2001 From: ricardodalarme Date: Mon, 23 Oct 2023 21:17:48 -0300 Subject: [PATCH] feat: align discover more property --- lib/pages/home/home_screen.dart | 42 ++++++++++++----------- lib/pages/home/widgets/discover_card.dart | 1 + 2 files changed, 23 insertions(+), 20 deletions(-) diff --git a/lib/pages/home/home_screen.dart b/lib/pages/home/home_screen.dart index 1432d98..0ebaa03 100644 --- a/lib/pages/home/home_screen.dart +++ b/lib/pages/home/home_screen.dart @@ -264,26 +264,28 @@ class HomeScreen extends StatelessWidget { SingleChildScrollView( scrollDirection: Axis.horizontal, physics: const BouncingScrollPhysics(), - child: Row( - children: [ - const SizedBox(width: 24), - DiscoverCard( - title: 'WhatsApp', - content: - 'Pagamentos seguros, rápidos e sem tarifa. A experiência Nubank sem nem sair da conversa.', - buttonText: 'Quero conhecer', - isNew: true, - onTap: () {}, - ), - DiscoverCard( - title: 'Indique seus amigos', - content: - 'Mostre aos seus amigos como é fácil ter uma vida sem burocracia.', - buttonText: 'Indicar amigos', - onTap: () => context.showBottomSheet(const ReferScreen()), - ), - const SizedBox(width: 14), - ], + child: IntrinsicHeight( + child: Row( + children: [ + const SizedBox(width: 24), + DiscoverCard( + title: 'WhatsApp', + content: + 'Pagamentos seguros, rápidos e sem tarifa. A experiência Nubank sem nem sair da conversa.', + buttonText: 'Quero conhecer', + isNew: true, + onTap: () {}, + ), + DiscoverCard( + title: 'Indique seus amigos', + content: + 'Mostre aos seus amigos como é fácil ter uma vida sem burocracia.', + buttonText: 'Indicar amigos', + onTap: () => context.showBottomSheet(const ReferScreen()), + ), + const SizedBox(width: 14), + ], + ), ), ), ], diff --git a/lib/pages/home/widgets/discover_card.dart b/lib/pages/home/widgets/discover_card.dart index b0642ce..cb395e0 100644 --- a/lib/pages/home/widgets/discover_card.dart +++ b/lib/pages/home/widgets/discover_card.dart @@ -74,6 +74,7 @@ class DiscoverCard extends StatelessWidget { style: Theme.of(context).textTheme.bodyMedium, ), const SizedBox(height: 10), + const Spacer(), FilledChip(buttonText), ], ),