Skip to content

Commit

Permalink
remove unnecessary comments and clean up maxHeight constraints in hom…
Browse files Browse the repository at this point in the history
…epage layout
  • Loading branch information
Polabiel committed Nov 26, 2024
1 parent 4a80517 commit 42b5506
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/src/app/home/home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class HomepageState extends State<Homepage> {
),
ConstrainedBox(
constraints: BoxConstraints(
maxHeight: screenHeight * 0.2, // 20% da altura da tela
maxHeight: screenHeight * 0.2,
),
child: const PharmacyComponentState(),
),
Expand All @@ -57,7 +57,7 @@ class HomepageState extends State<Homepage> {
),
ConstrainedBox(
constraints: BoxConstraints(
maxHeight: screenHeight * 0.2, // 60% da altura da tela
maxHeight: screenHeight * 0.2,
),
child: const BannerComponent(hasPromotion: false),
),
Expand All @@ -70,15 +70,16 @@ class HomepageState extends State<Homepage> {
TextStyle(fontSize: 18, fontWeight: FontWeight.bold),
),
),
// Exibição de catalogo de varios tipo de produtos
ConstrainedBox(
constraints: BoxConstraints(
maxHeight: screenHeight * 0.2, // 60% da altura da tela
maxHeight: screenHeight * 0.2,
),
child: const BannerComponent(hasPromotion: true),
),
ConstrainedBox(
constraints: BoxConstraints(
maxHeight: screenHeight * 0.2, // 20% da altura da tela
maxHeight: screenHeight * 0.2,
),
child: const Divider()),
Expert(),
Expand Down

0 comments on commit 42b5506

Please sign in to comment.