2 Commits

Author SHA1 Message Date
69e647d33f Update dependency flutter_dotenv to v6 2025-11-18 11:35:11 +00:00
46d52b7c27 Change distances to fractions of a mile
replace container with sizedbox
add check for context being mounted.
2025-04-22 13:24:46 -07:00
2 changed files with 7 additions and 6 deletions

View File

@@ -94,8 +94,9 @@ class CustomDialogBoxState extends State<CustomDialogBox> {
);
});
}
FocusScope.of(context).unfocus(); // Close keyboard
if (mounted) {
FocusScope.of(context).unfocus(); // Close keyboard
}
}
void _nextPage() {
@@ -175,7 +176,7 @@ class CustomDialogBoxState extends State<CustomDialogBox> {
),
),
if (_predictions.isNotEmpty)
Container(
SizedBox(
height: 150,
child: ListView.builder(
itemCount: _predictions.length,
@@ -206,9 +207,9 @@ class CustomDialogBoxState extends State<CustomDialogBox> {
const SizedBox(height: 10),
DropdownButtonFormField<String>(
value: _selectedRadius,
decoration: const InputDecoration(labelText: 'Search Radius'),
decoration: const InputDecoration(labelText: 'Search2 Radius'),
items:
['1 mile', '2 miles', '5 miles']
['1/8 mile', '1/4 mile', '3/4 mile', '1 mile']
.map((e) => DropdownMenuItem(value: e, child: Text(e)))
.toList(),
onChanged: (val) => setState(() => _selectedRadius = val),

View File

@@ -37,7 +37,7 @@ dependencies:
google_maps_flutter: ^2.12.1
geolocator: ^14.0.0
permission_handler: ^12.0.0+1
flutter_dotenv: ^5.2.1
flutter_dotenv: 6.0.0
powersync: ^1.12.2
uuid: ^4.5.1
supabase_flutter: ^2.8.4