Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

点击取消按钮,报错 #67

Closed
leozhang007 opened this issue Oct 11, 2019 · 1 comment
Closed

点击取消按钮,报错 #67

leozhang007 opened this issue Oct 11, 2019 · 1 comment

Comments

@leozhang007
Copy link

leozhang007 commented Oct 11, 2019

CleanShot 2019-10-11 at 20 57 28

`
_addressClick() async {
_temp = await CityPickers.showCityPicker(
barrierDismissible: false,
theme: ThemeData(
primarySwatch: buttonColor,
),
context: context,
height: 200,
);

setState(() {
  _address = "${_temp.provinceName}${_temp.cityName}${_temp.areaName}";
});

}
`

@hanxu317317
Copy link
Owner

你点击取消的时候. _temp还是udnefined. 怎么去取provinceName.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants