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.
 
 
 
 
 
 

89 lines
2.4 KiB

import 'package:flutter/material.dart';
import 'package:huixiang/generated/l10n.dart';
import 'package:huixiang/utils/font_weight.dart';
import 'package:huixiang/view_widget/my_appbar.dart';
import 'package:flutter_screenutil/flutter_screenutil.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: S.of(context).chengshixuanze,
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.h,
margin: EdgeInsets.fromLTRB(16.w, 48.h, 16.w, 8.h),
padding: EdgeInsets.fromLTRB(10.w, 6.h, 16.w, 6.h),
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.w, 0.h, 6.w, 0.h),
child: Text(
"武汉市",
style: TextStyle(
fontSize: 12.sp,
color: Colors.black,
fontWeight: MyFontWeight.regular),
),
),
),
Container(
width: 1.w,
color: Colors.black,
margin:
EdgeInsets.only(top: 2.h, bottom: 2.h, left: 10.w, right: 16.w),
),
Icon(
Icons.search,
size: 24,
color: Colors.black,
),
Expanded(
child: TextField(
decoration: InputDecoration(border: InputBorder.none),
),
),
Icon(
Icons.close,
size: 19,
color: Colors.grey,
),
],
),
);
}
}