You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
92 lines
2.2 KiB
92 lines
2.2 KiB
4 years ago
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
import 'package:flutter/material.dart';
|
||
|
import 'package:huixiang/view_widget/my_appbar.dart';
|
||
|
|
||
|
class CityPickerPage extends StatefulWidget {
|
||
|
@override
|
||
|
State<StatefulWidget> createState() {
|
||
|
return _CityPickerPage();
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
class _CityPickerPage extends State<CityPickerPage> {
|
||
|
@override
|
||
|
Widget build(BuildContext context) {
|
||
|
return Scaffold(
|
||
|
appBar: MyAppBar(
|
||
|
title: "城市选择",
|
||
|
titleColor: Colors.black,
|
||
|
leadingColor: Colors.black,
|
||
|
background: Colors.white,
|
||
|
),
|
||
|
body: Container(
|
||
|
// child: AzListView(data: data, itemCount: 100, itemBuilder: (contetx, position) {
|
||
|
//
|
||
|
// }),
|
||
|
),
|
||
|
);
|
||
|
}
|
||
|
|
||
|
|
||
|
Widget searchWidget() {
|
||
|
return Container(
|
||
|
height: 36,
|
||
|
margin: EdgeInsets.fromLTRB(16, 48, 16, 8),
|
||
|
padding: EdgeInsets.fromLTRB(10, 6, 16, 6),
|
||
|
decoration: BoxDecoration(
|
||
|
color: Colors.white,
|
||
|
borderRadius: BorderRadius.all(Radius.circular(4)),
|
||
|
boxShadow: [
|
||
|
BoxShadow(
|
||
|
color: Colors.black.withAlpha(12),
|
||
|
offset: Offset(0, 3),
|
||
|
blurRadius: 14,
|
||
|
spreadRadius: 0,)
|
||
|
]),
|
||
|
child: Row(
|
||
|
children: [
|
||
|
InkWell(
|
||
|
onTap: () {},
|
||
|
child: Container(
|
||
|
alignment: Alignment.center,
|
||
|
padding: EdgeInsets.fromLTRB(10, 0, 6, 0),
|
||
|
child: Text(
|
||
|
"武汉市",
|
||
|
style: TextStyle(
|
||
|
fontSize: 12,
|
||
|
color: Colors.black,
|
||
|
),
|
||
|
),
|
||
|
),
|
||
|
),
|
||
|
Container(
|
||
|
width: 1,
|
||
|
color: Colors.black,
|
||
|
margin: EdgeInsets.only(top: 2, bottom: 2, left: 10, right: 16),
|
||
|
),
|
||
|
Icon(
|
||
|
Icons.search,
|
||
|
size: 24,
|
||
|
color: Colors.black,
|
||
|
),
|
||
|
Expanded(
|
||
|
child: TextField(
|
||
|
decoration: InputDecoration(border: InputBorder.none),
|
||
|
),
|
||
|
),
|
||
|
Icon(
|
||
|
Icons.close,
|
||
|
size: 19,
|
||
|
color: Colors.grey,
|
||
|
),
|
||
|
],
|
||
|
),
|
||
|
);
|
||
|
}
|
||
|
|
||
|
}
|