This commit is contained in:
Felipe
2023-10-24 15:15:47 -05:00
parent 20bd588176
commit c9deda8f97
+5 -4
View File
@@ -839,6 +839,7 @@ class _ServiceScreenState extends State<ServiceScreen> {
const SizedBox(height: 15),
TextFormField(
controller: _locationController,
readOnly: ubicacion == 'sitio' ? true : false,
decoration: const InputDecoration(
prefixIcon: Icon(Icons.near_me),
hintText: 'Dirección',
@@ -849,10 +850,10 @@ class _ServiceScreenState extends State<ServiceScreen> {
placeAutoComplete(modifiedValue);
},
),
SizedBox(
height: _placesList.isNotEmpty
? 200
: 0, // Ajusta la altura según tus necesidades
ubicacion == 'sitio'
? const SizedBox.shrink()
: SizedBox(
height: _placesList.isNotEmpty ? 200 : 0,
child: ListView.builder(
itemCount: _placesList.length,
itemBuilder: (context, index) {