Fixes the overlap of the button and the sliders on small screens #65
@ -34,23 +34,6 @@ class _NewTripPreferencesPageState extends State<NewTripPreferencesPage> with Sc
|
|||||||
child: Scaffold(
|
child: Scaffold(
|
||||||
body: ListView(
|
body: ListView(
|
||||||
children: [
|
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(
|
Center(
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: EdgeInsets.only(left: 10, right: 10, top: 20, bottom: 0),
|
padding: EdgeInsets.only(left: 10, right: 10, top: 20, bottom: 0),
|
||||||
@ -63,6 +46,11 @@ class _NewTripPreferencesPageState extends State<NewTripPreferencesPage> with Sc
|
|||||||
durationPicker(preferences.maxTime),
|
durationPicker(preferences.maxTime),
|
||||||
|
|
||||||
preferenceSliders([preferences.sightseeing, preferences.shopping, preferences.nature]),
|
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),
|
floatingActionButton: NewTripButton(trip: widget.trip, preferences: preferences),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user