CityPickerView constructor

const CityPickerView({
  1. dynamic key,
  2. ResultBlock? onResult,
  3. List? params,
  4. TopMenuStyle? topMenuStyle,
  5. double buttonBarHeight = 44,
  6. double listHeight = 200,
  7. BoxDecoration buttonBarBoxDecoration = const BoxDecoration(border: Border(bottom: BorderSide(color: Colors.grey, width: 1))),
  8. TextStyle? listTextStyle = const TextStyle(color: Colors.black87, fontSize: 16),
  9. Widget sureWidget = const Text('确定'),
  10. Widget cancelWidget = const Text('取消'),
})

Implementation

const CityPickerView({
  key,
  this.onResult,
  this.params,
  this.topMenuStyle,
  this.buttonBarHeight = 44,
  this.listHeight = 200,
  this.buttonBarBoxDecoration =  const BoxDecoration(
    border: Border(bottom: BorderSide(color: Colors.grey, width: 1))),
  this.listTextStyle = const TextStyle(color: Colors.black87, fontSize: 16),
  this.sureWidget = const Text(
    '确定',
  ),
  this.cancelWidget = const Text(
    '取消',
  ),
}) : super(key: key);