Skip to content

Commit

Permalink
Where are you: swap timezone map & dropdowns
Browse files Browse the repository at this point in the history
Resolves: canonical#1189
  • Loading branch information
jpnurmi committed Oct 17, 2022
1 parent e447cec commit 7b9ee6c
Showing 1 changed file with 11 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,21 +70,9 @@ class WhereAreYouPageState extends State<WhereAreYouPage> {

return WizardPage(
title: Text(lang.whereAreYouPageTitle),
headerPadding: EdgeInsets.zero,
contentPadding: EdgeInsets.zero,
content: Column(
children: <Widget>[
Expanded(
child: TimezoneMap(
offset: controller.selectedLocation?.offset,
marker: controller.selectedLocation?.coordinates,
onPressed: (coordinates) => controller
.searchCoordinates(coordinates)
.then((locations) =>
controller.selectLocation(locations.firstOrNull)),
),
),
const SizedBox(height: kContentSpacing),
Padding(
padding: kContentPadding,
child: Row(
Expand Down Expand Up @@ -147,6 +135,17 @@ class WhereAreYouPageState extends State<WhereAreYouPage> {
],
),
),
const SizedBox(height: kContentSpacing),
Expanded(
child: TimezoneMap(
offset: controller.selectedLocation?.offset,
marker: controller.selectedLocation?.coordinates,
onPressed: (coordinates) => controller
.searchCoordinates(coordinates)
.then((locations) =>
controller.selectLocation(locations.firstOrNull)),
),
),
],
),
actions: <WizardAction>[
Expand Down

0 comments on commit 7b9ee6c

Please sign in to comment.