Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
4ecf44bafa
@ -38,8 +38,18 @@ class LocationSearchDelegate extends SearchDelegate<LatLng?> {
|
|||||||
case ConnectionState.active:
|
case ConnectionState.active:
|
||||||
case ConnectionState.none:
|
case ConnectionState.none:
|
||||||
case ConnectionState.done:
|
case ConnectionState.done:
|
||||||
|
if ((snapshot.data?.length ?? 0) == 0) {
|
||||||
|
return const Row(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
|
children: [
|
||||||
|
SizedBox(height: 50),
|
||||||
|
Text("Keine Sucherergebnisse gefunden")
|
||||||
|
],
|
||||||
|
);
|
||||||
|
}
|
||||||
return ListView.builder(
|
return ListView.builder(
|
||||||
itemCount: snapshot.data?.length ?? 0,
|
itemCount: snapshot.data!.length,
|
||||||
itemBuilder: (context, index) {
|
itemBuilder: (context, index) {
|
||||||
Place place = snapshot.data![index];
|
Place place = snapshot.data![index];
|
||||||
return ListTile(
|
return ListTile(
|
||||||
|
Reference in New Issue
Block a user