From 3c5485cda8e46589a50d4845d36bb64ef4cc8a91 Mon Sep 17 00:00:00 2001 From: Remy Moll Date: Sun, 6 Apr 2025 19:38:32 +0200 Subject: [PATCH] add some padding to the sliders --- frontend/lib/pages/new_trip_preferences.dart | 22 +++++--------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/frontend/lib/pages/new_trip_preferences.dart b/frontend/lib/pages/new_trip_preferences.dart index ab6146a..4d65c10 100644 --- a/frontend/lib/pages/new_trip_preferences.dart +++ b/frontend/lib/pages/new_trip_preferences.dart @@ -34,23 +34,6 @@ class _NewTripPreferencesPageState extends State with Sc child: Scaffold( body: ListView( children: [ - // Center( - // child: CircleAvatar( - // radius: 100, - // child: Icon(Icons.person, size: 100), - // ) - // ), - // Padding(padding: EdgeInsets.only(top: 30)), - // Center( - // child: FutureBuilder( - // future: widget.trip.cityName, - // builder: (context, snapshot) => Text( - // 'Your trip to ${snapshot.hasData ? snapshot.data! : "..."}', - // style: TextStyle(fontSize: 24, fontWeight: FontWeight.bold) - // ) - // ) - // ), - Center( child: Padding( padding: EdgeInsets.only(left: 10, right: 10, top: 20, bottom: 0), @@ -63,6 +46,11 @@ class _NewTripPreferencesPageState extends State with Sc durationPicker(preferences.maxTime), preferenceSliders([preferences.sightseeing, preferences.shopping, preferences.nature]), + + // Add a conditional padding to avoid the floating button covering the last slider + Padding( + padding: EdgeInsets.only(bottom: MediaQuery.of(context).viewInsets.bottom + 80), + ), ] ), floatingActionButton: NewTripButton(trip: widget.trip, preferences: preferences), -- 2.47.2