AddressPicker constructor

const AddressPicker({
  1. Key? key,
  2. AddressPickerMode mode = AddressPickerMode.provinceCityAndDistrict,
  3. AddressCallback? onSelectedAddressChanged,
  4. Function? onTapEnter,
  5. Function? onTapCancel,
  6. double widgetHeight = 250,
  7. BoxDecoration headerDecoration = const BoxDecoration(color: Colors.transparent),
  8. Color firstFlexColor = const Color(0xFF292B3C),
  9. Color secondFlexColor = const Color(0xFF292B3C),
  10. Color thirdFlexColor = const Color(0xFF292B3C),
  11. Color bgColor = const Color(0xFFFFFFFF),
  12. TextStyle style = const TextStyle(color: Colors.black, fontSize: 17),
  13. Widget headerText = const Text("属地", style: TextStyle(color: Color(0xFFFFFFFF), fontSize: 17)),
  14. bool isShowTopHeader = true,
})

Implementation

const AddressPicker(
    {Key? key,
    this.mode = AddressPickerMode.provinceCityAndDistrict,
    this.onSelectedAddressChanged,
    this.onTapEnter,
    this.onTapCancel,
    this.widgetHeight = 250,
    this.headerDecoration = const BoxDecoration(color: Colors.transparent),
    this.firstFlexColor = const Color(0xFF292B3C),
    this.secondFlexColor = const Color(0xFF292B3C),
    this.thirdFlexColor = const Color(0xFF292B3C),
    this.bgColor = const Color(0xFFFFFFFF),
    this.style = const TextStyle(color: Colors.black, fontSize: 17),
    this.headerText = const Text(
      "属地",
      style: TextStyle(
        color: Color(0xFFFFFFFF),
        fontSize: 17,
      ),
    ),
    this.isShowTopHeader = true})
    : super(key: key);