Skip to content

Commit

Permalink
feat: align discover more property
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardodalarme committed Oct 24, 2023
1 parent 0e55289 commit bc65ed1
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 20 deletions.
42 changes: 22 additions & 20 deletions lib/pages/home/home_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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),
],
),
),
),
],
Expand Down
1 change: 1 addition & 0 deletions lib/pages/home/widgets/discover_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ class DiscoverCard extends StatelessWidget {
style: Theme.of(context).textTheme.bodyMedium,
),
const SizedBox(height: 10),
const Spacer(),
FilledChip(buttonText),
],
),
Expand Down

0 comments on commit bc65ed1

Please sign in to comment.