import 'package:flutter/material.dart'; import 'package:huixiang/view_widget/my_appbar.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; class CityPickerPage extends StatefulWidget { @override State createState() { return _CityPickerPage(); } } class _CityPickerPage extends State { @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.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, ), ], ), ); } }