From 4a698e61d2a76ed550420bcc18c111c769110492 Mon Sep 17 00:00:00 2001 From: Michael Thomas Date: Tue, 13 Sep 2022 17:34:36 -0400 Subject: [PATCH] fix: don't allow home page content to slide down if its height is less than the screen height --- lib/src/screens/home/content.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/src/screens/home/content.dart b/lib/src/screens/home/content.dart index 5e478fa..75a4b13 100644 --- a/lib/src/screens/home/content.dart +++ b/lib/src/screens/home/content.dart @@ -1,6 +1,5 @@ import 'package:flutter/material.dart'; import 'package:furman_now/src/routes/index.gr.dart'; -import 'package:furman_now/src/utils/conditional_parent_widget.dart'; import 'package:furman_now/src/widgets/events/events_list.dart'; import 'package:furman_now/src/widgets/header.dart'; import 'package:furman_now/src/widgets/home/restaurants/restaurants_list.dart'; @@ -56,6 +55,9 @@ class _HomeContentState extends State { padding: const EdgeInsets.only(bottom: 15), margin: EdgeInsets.only(top: margin), width: double.infinity, + constraints: BoxConstraints( + minHeight: constraints.maxHeight - margin, + ), child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ @@ -97,7 +99,7 @@ class _HomeContentState extends State { ], ), ), - ] + ], ), ), ),