@@ -57,6 +57,9 @@ class PlacesAutocompleteField extends StatefulWidget {
5757 this .onSelected,
5858 this .onError,
5959 this .inputDecoration = const InputDecoration (),
60+ this .overlayBorderRadius,
61+ this .textStyle,
62+ this .textStyleFormField,
6063 }) : super (key: key);
6164
6265 /// Controls the text being edited.
@@ -134,6 +137,12 @@ class PlacesAutocompleteField extends StatefulWidget {
134137 /// Callback when autocomplete has error.
135138 final ValueChanged <PlacesAutocompleteResponse >? onError;
136139
140+ final BorderRadius ? overlayBorderRadius;
141+
142+ final TextStyle ? textStyle;
143+
144+ final TextStyle ? textStyleFormField;
145+
137146 @override
138147 _LocationAutocompleteFieldState createState () =>
139148 _LocationAutocompleteFieldState ();
@@ -178,6 +187,8 @@ class _LocationAutocompleteFieldState extends State<PlacesAutocompleteField> {
178187 radius: widget.radius,
179188 types: widget.types,
180189 strictbounds: widget.strictbounds,
190+ overlayBorderRadius: widget.overlayBorderRadius,
191+ textStyle: widget.textStyle,
181192 );
182193
183194 void _handleTap () async {
@@ -201,13 +212,14 @@ class _LocationAutocompleteFieldState extends State<PlacesAutocompleteField> {
201212 final TextEditingController controller = _effectiveController! ;
202213
203214 var text = controller.text.isNotEmpty
204- ? Text (
205- controller.text,
215+ ? Text (controller.text,
206216 softWrap: true ,
207- )
217+ style: widget.textStyleFormField ??
218+ const TextStyle (color: Colors .black38))
208219 : Text (
209220 widget.hint,
210- style: const TextStyle (color: Colors .black38),
221+ style: widget.textStyleFormField ??
222+ const TextStyle (color: Colors .black38),
211223 );
212224
213225 Widget child = Row (
0 commit comments