Skip to content

Commit 746d750

Browse files
committed
fix(headline-details): add spacing when no similar headlines
- Add SliverToBoxAdapter with SizedBox height of AppSpacing.lg when no similar headlines
1 parent b3731fe commit 746d750

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/headline-details/view/headline_details_page.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,10 @@ class _HeadlineDetailsPageState extends State<HeadlineDetailsPage> {
402402
),
403403
),
404404
);
405+
} else {
406+
slivers.add(
407+
const SliverToBoxAdapter(child: SizedBox(height: AppSpacing.lg)),
408+
);
405409
}
406410

407411
slivers.addAll([
@@ -466,6 +470,10 @@ class _HeadlineDetailsPageState extends State<HeadlineDetailsPage> {
466470
),
467471
),
468472
);
473+
} else {
474+
slivers.add(
475+
const SliverToBoxAdapter(child: SizedBox(height: AppSpacing.lg)),
476+
);
469477
}
470478

471479
Future<void> onSimilarHeadlineTap(Headline similarHeadline) async {

0 commit comments

Comments
 (0)