Optimize location search experience
This commit is contained in:
parent
ced00f9267
commit
507d21fe18
1 changed files with 2 additions and 2 deletions
|
@ -1,3 +1,5 @@
|
|||
import 'dart:developer';
|
||||
|
||||
import 'package:dio/dio.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/widgets.dart';
|
||||
|
@ -31,11 +33,9 @@ class _LocationSearchWidgetState extends State<LocationSearchWidget> {
|
|||
),
|
||||
),
|
||||
hideOnEmpty: true,
|
||||
hideOnLoading: true,
|
||||
loadingBuilder: (context) {
|
||||
return loadWidget;
|
||||
},
|
||||
debounceDuration: Duration(milliseconds: 0),
|
||||
suggestionsCallback: (pattern) async {
|
||||
if (pattern.isEmpty || pattern.length < 2) {
|
||||
return null;
|
||||
|
|
Loading…
Add table
Reference in a new issue