11 Commits

3 changed files with 7 additions and 10 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ pluginManagement {
plugins { plugins {
id("dev.flutter.flutter-plugin-loader") version "1.0.0" id("dev.flutter.flutter-plugin-loader") version "1.0.0"
id("com.android.application") version "9.2.1" apply false id("com.android.application") version "8.7.0" apply false
id("org.jetbrains.kotlin.android") version "1.8.22" apply false id("org.jetbrains.kotlin.android") version "1.8.22" apply false
} }
-2
View File
@@ -188,8 +188,6 @@ class SignMapScreenState extends State<SignMapScreen> {
scrollGesturesEnabled: true, scrollGesturesEnabled: true,
tiltGesturesEnabled: true, tiltGesturesEnabled: true,
rotateGesturesEnabled: true, rotateGesturesEnabled: true,
myLocationButtonEnabled: true,
compassEnabled: true,
mapType: MapType.normal, mapType: MapType.normal,
onMapCreated: (controller) { onMapCreated: (controller) {
mapController = controller; mapController = controller;
+5 -6
View File
@@ -94,10 +94,9 @@ 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) {
@@ -143,7 +142,7 @@ class CustomDialogBoxState extends State<CustomDialogBox> {
Widget _buildPageContent() { Widget _buildPageContent() {
return SizedBox( return SizedBox(
height: MediaQuery.of(context).size.height * 0.30, height: MediaQuery.of(context).size.height * 0.25,
child: PageView( child: PageView(
controller: _pageController, controller: _pageController,
physics: const NeverScrollableScrollPhysics(), physics: const NeverScrollableScrollPhysics(),
@@ -176,7 +175,7 @@ class CustomDialogBoxState extends State<CustomDialogBox> {
), ),
), ),
if (_predictions.isNotEmpty) if (_predictions.isNotEmpty)
SizedBox( Container(
height: 150, height: 150,
child: ListView.builder( child: ListView.builder(
itemCount: _predictions.length, itemCount: _predictions.length,
@@ -207,9 +206,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: 'Search2 Radius'), decoration: const InputDecoration(labelText: 'Search Radius'),
items: items:
['1/8 mile', '1/4 mile', '3/4 mile', '1 mile'] ['1 mile', '2 miles', '5 miles']
.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),