remove useless package
This commit is contained in:
@@ -4,8 +4,6 @@ import 'package:shared_preferences/shared_preferences.dart';
|
||||
import 'package:http/http.dart' as http;
|
||||
import 'package:intl/intl.dart';
|
||||
import 'package:flutter_dotenv/flutter_dotenv.dart';
|
||||
import 'package:google_places_autocomplete_text_field/google_places_autocomplete_text_field.dart';
|
||||
import 'package:google_places_autocomplete_text_field/model/prediction.dart';
|
||||
|
||||
import 'dart:convert';
|
||||
import 'dart:io';
|
||||
@@ -220,7 +218,7 @@ class _UpdateeventImageState extends State<UpdateeventImage>
|
||||
hintText: 'Modifier le nom de l\'évènement'),
|
||||
),
|
||||
),
|
||||
/* Padding(
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(
|
||||
left: 15.0, right: 15.0, top: 15, bottom: 0),
|
||||
//padding: EdgeInsets.symmetric(horizontal: 15),
|
||||
@@ -231,40 +229,6 @@ class _UpdateeventImageState extends State<UpdateeventImage>
|
||||
labelText: 'Lieu',
|
||||
hintText: 'Entrer le lieu'),
|
||||
),
|
||||
),*/
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(
|
||||
left: 15.0, right: 15.0, top: 15, bottom: 0),
|
||||
//padding: EdgeInsets.symmetric(horizontal: 15),
|
||||
child: GooglePlacesAutoCompleteTextFormField(
|
||||
textEditingController: inputPlace,
|
||||
googleAPIKey: GOOGLEMAP_API_KEY,
|
||||
decoration: const InputDecoration(
|
||||
hintText: 'Enter your address',
|
||||
labelText: 'Lieu',
|
||||
labelStyle: TextStyle(color: Colors.purple),
|
||||
border: OutlineInputBorder(),
|
||||
),
|
||||
validator: (value) {
|
||||
if (value!.isEmpty) {
|
||||
return 'Please enter some text';
|
||||
}
|
||||
return null;
|
||||
},
|
||||
// proxyURL: _yourProxyURL,
|
||||
maxLines: 1,
|
||||
overlayContainer: (child) => Material(
|
||||
elevation: 1.0,
|
||||
color: Colors.green,
|
||||
borderRadius: BorderRadius.circular(12),
|
||||
child: child,
|
||||
),
|
||||
getPlaceDetailWithLatLng: (prediction) {
|
||||
print('placeDetails${prediction.lng}');
|
||||
},
|
||||
itmClick: (Prediction prediction) =>
|
||||
inputPlace.text = prediction.description!,
|
||||
),
|
||||
),
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(
|
||||
|
Reference in New Issue
Block a user