|
|
|
@ -161,7 +161,7 @@ class UnionPageState extends State<UnionPage>
|
|
|
|
|
event["province"], |
|
|
|
|
event["city"], |
|
|
|
|
event["district"], |
|
|
|
|
editingController.text, |
|
|
|
|
"", |
|
|
|
|
-1); |
|
|
|
|
if (_mapController != null) |
|
|
|
|
_mapController.updateMapOptions(BMFMapOptions( |
|
|
|
@ -214,7 +214,7 @@ class UnionPageState extends State<UnionPage>
|
|
|
|
|
value.getString("province"), |
|
|
|
|
value.getString("city"), |
|
|
|
|
value.getString("district"), |
|
|
|
|
editingController.text, |
|
|
|
|
"", |
|
|
|
|
-1), |
|
|
|
|
setState(() { |
|
|
|
|
if (_mapController != null) { |
|
|
|
@ -227,7 +227,7 @@ class UnionPageState extends State<UnionPage>
|
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
queryStore("", "", "", "", "", editingController.text, -1), |
|
|
|
|
queryStore("", "", "", "", "", "", -1), |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
); |
|
|
|
@ -254,6 +254,7 @@ class UnionPageState extends State<UnionPage>
|
|
|
|
|
// "province": province, |
|
|
|
|
"latitude": latitude, |
|
|
|
|
"longitude": longitude, |
|
|
|
|
if(searchKey != "") |
|
|
|
|
"searchKey": searchKey, |
|
|
|
|
"serviceType": (tabController.index == 0 && index == -1) || index == 0 |
|
|
|
|
? "" |
|
|
|
@ -351,15 +352,23 @@ class UnionPageState extends State<UnionPage>
|
|
|
|
|
children: [ |
|
|
|
|
UnionList(refreshController, storeList, () { |
|
|
|
|
startLocation(true); |
|
|
|
|
},(txt){ |
|
|
|
|
queryStore("","","","","",txt,0); |
|
|
|
|
}), |
|
|
|
|
UnionList(refreshController1, storeList1, () { |
|
|
|
|
startLocation(true); |
|
|
|
|
},(txt){ |
|
|
|
|
queryStore("","","","","",txt,0); |
|
|
|
|
}), |
|
|
|
|
UnionList(refreshController2, storeList2, () { |
|
|
|
|
startLocation(true); |
|
|
|
|
},(txt){ |
|
|
|
|
queryStore("","","","","",txt,0); |
|
|
|
|
}), |
|
|
|
|
UnionList(refreshController3, storeList3, () { |
|
|
|
|
startLocation(true); |
|
|
|
|
},(txt){ |
|
|
|
|
queryStore("","","","","",txt,0); |
|
|
|
|
}), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
@ -451,7 +460,7 @@ class UnionPageState extends State<UnionPage>
|
|
|
|
|
) { |
|
|
|
|
return Column( |
|
|
|
|
children: [ |
|
|
|
|
buildSearchItem(), |
|
|
|
|
// buildSearchItem(), |
|
|
|
|
Container( |
|
|
|
|
height: MediaQuery.of(context).size.height - |
|
|
|
|
103.h - |
|
|
|
@ -509,60 +518,59 @@ class UnionPageState extends State<UnionPage>
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
BMFMapController _mapController; |
|
|
|
|
final TextEditingController editingController = TextEditingController(); |
|
|
|
|
|
|
|
|
|
void onMapCreated(BMFMapController controller) { |
|
|
|
|
_mapController = controller; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Widget buildSearchItem() { |
|
|
|
|
return Container( |
|
|
|
|
height: 36.h, |
|
|
|
|
margin: EdgeInsets.fromLTRB(6.w, 0, 14.w, 0), |
|
|
|
|
padding: EdgeInsets.fromLTRB(0, 6.h, 0, 6.h), |
|
|
|
|
decoration: BoxDecoration( |
|
|
|
|
color: Color(0xFFF5FAF7), |
|
|
|
|
borderRadius: BorderRadius.circular(4), |
|
|
|
|
boxShadow: [ |
|
|
|
|
BoxShadow( |
|
|
|
|
color: Colors.black.withAlpha(12), |
|
|
|
|
offset: Offset(0, 3), |
|
|
|
|
blurRadius: 14, |
|
|
|
|
spreadRadius: 0, |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
child: TextField( |
|
|
|
|
textInputAction: TextInputAction.search, |
|
|
|
|
onEditingComplete: () { |
|
|
|
|
startLocation(false); |
|
|
|
|
}, |
|
|
|
|
controller: editingController, |
|
|
|
|
cursorHeight: 30.h, |
|
|
|
|
decoration: InputDecoration( |
|
|
|
|
contentPadding: EdgeInsets.symmetric( |
|
|
|
|
vertical: 12.h, |
|
|
|
|
), |
|
|
|
|
prefixIcon: Icon( |
|
|
|
|
Icons.search, |
|
|
|
|
size: 24, |
|
|
|
|
color: Colors.black, |
|
|
|
|
), |
|
|
|
|
suffixIcon: InkWell( |
|
|
|
|
onTap: () { |
|
|
|
|
editingController.clear(); |
|
|
|
|
}, |
|
|
|
|
child: Icon( |
|
|
|
|
Icons.close, |
|
|
|
|
size: 19, |
|
|
|
|
color: Colors.grey, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
border: InputBorder.none, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
// Widget buildSearchItem() { |
|
|
|
|
// return Container( |
|
|
|
|
// height: 36.h, |
|
|
|
|
// margin: EdgeInsets.fromLTRB(6.w, 0, 14.w, 0), |
|
|
|
|
// padding: EdgeInsets.fromLTRB(0, 6.h, 0, 6.h), |
|
|
|
|
// decoration: BoxDecoration( |
|
|
|
|
// color: Color(0xFFF5FAF7), |
|
|
|
|
// borderRadius: BorderRadius.circular(4), |
|
|
|
|
// boxShadow: [ |
|
|
|
|
// BoxShadow( |
|
|
|
|
// color: Colors.black.withAlpha(12), |
|
|
|
|
// offset: Offset(0, 3), |
|
|
|
|
// blurRadius: 14, |
|
|
|
|
// spreadRadius: 0, |
|
|
|
|
// ), |
|
|
|
|
// ], |
|
|
|
|
// ), |
|
|
|
|
// child: TextField( |
|
|
|
|
// textInputAction: TextInputAction.search, |
|
|
|
|
// onEditingComplete: () { |
|
|
|
|
// startLocation(false); |
|
|
|
|
// }, |
|
|
|
|
// controller: editingController, |
|
|
|
|
// cursorHeight: 30.h, |
|
|
|
|
// decoration: InputDecoration( |
|
|
|
|
// contentPadding: EdgeInsets.symmetric( |
|
|
|
|
// vertical: 12.h, |
|
|
|
|
// ), |
|
|
|
|
// prefixIcon: Icon( |
|
|
|
|
// Icons.search, |
|
|
|
|
// size: 24, |
|
|
|
|
// color: Colors.black, |
|
|
|
|
// ), |
|
|
|
|
// suffixIcon: InkWell( |
|
|
|
|
// onTap: () { |
|
|
|
|
// editingController.clear(); |
|
|
|
|
// }, |
|
|
|
|
// child: Icon( |
|
|
|
|
// Icons.close, |
|
|
|
|
// size: 19, |
|
|
|
|
// color: Colors.grey, |
|
|
|
|
// ), |
|
|
|
|
// ), |
|
|
|
|
// border: InputBorder.none, |
|
|
|
|
// ), |
|
|
|
|
// ), |
|
|
|
|
// ); |
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
// Widget buildSliverAppBar(BMFMapWidget map) { |
|
|
|
|
// return SliverAppBar( |
|
|
|
|