2 Commits

Author SHA1 Message Date
b5b506f721 Update dependency smooth_page_indicator to v2
Some checks failed
renovate/artifacts Artifact file update failure
2025-12-07 19:16:21 +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,9 +94,10 @@ class CustomDialogBoxState extends State<CustomDialogBox> {
); );
}); });
} }
if (mounted) {
FocusScope.of(context).unfocus(); // Close keyboard FocusScope.of(context).unfocus(); // Close keyboard
} }
}
void _nextPage() { void _nextPage() {
if (_currentPage < 3) { if (_currentPage < 3) {
@@ -175,7 +176,7 @@ class CustomDialogBoxState extends State<CustomDialogBox> {
), ),
), ),
if (_predictions.isNotEmpty) if (_predictions.isNotEmpty)
Container( SizedBox(
height: 150, height: 150,
child: ListView.builder( child: ListView.builder(
itemCount: _predictions.length, itemCount: _predictions.length,
@@ -206,9 +207,9 @@ class CustomDialogBoxState extends State<CustomDialogBox> {
const SizedBox(height: 10), const SizedBox(height: 10),
DropdownButtonFormField<String>( DropdownButtonFormField<String>(
value: _selectedRadius, value: _selectedRadius,
decoration: const InputDecoration(labelText: 'Search Radius'), decoration: const InputDecoration(labelText: 'Search2 Radius'),
items: 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))) .map((e) => DropdownMenuItem(value: e, child: Text(e)))
.toList(), .toList(),
onChanged: (val) => setState(() => _selectedRadius = val), onChanged: (val) => setState(() => _selectedRadius = val),

View File

@@ -43,7 +43,7 @@ dependencies:
supabase_flutter: ^2.8.4 supabase_flutter: ^2.8.4
google_sign_in: ^6.3.0 google_sign_in: ^6.3.0
go_router: ^15.0.0 go_router: ^15.0.0
smooth_page_indicator: ^1.2.1 smooth_page_indicator: 2.0.1
flutter_google_places_sdk: ^0.4.2+1 flutter_google_places_sdk: ^0.4.2+1
dev_dependencies: dev_dependencies: