存档
11月 2021
显示总共30条中的前3条
flutter Unhandled Exception: type 'int' is not a subtype of type 'String'
发布者 : 粮油菜大市场 发布时间 : 23 Nov 2021 02:37:24
Unhandled Exception: type 'int' is not a subtype of type 'String'
latitude = double.parse(json['latitude']);本来以为这个可以把int转换成double,原来只能是转换String
看来得用json['latitude'].toDouble()方法了
Looking up a deactivated widget's ancestor is unsafe. flutter
发布者 : 粮油菜大市场 发布时间 : 23 Nov 2021 01:08:31
Looking up a deactivated widget's ancestor is unsafe.
_model.saveMerchantProfile(_formData).then((_) {
Navigator.of(context).pop();
if (_model.errorMsg != null) {
showClzDialog(
context, _model.errorMsg!,
onPressFuction: () {
Navigator.of(context).pop();
});
}
});
究其原因,大概是Navigator.of(context).pop();把这个页面的context给销毁了,下面的dialog就找不到context了,改成下面的情况就好了
model.saveMerchantProfile(_formData).then((_) { showClzDialog(context, _model.errorMsg ?? '保存成功', onPressFuction: () { Navigator.of(context).pop(); }); });
统计网站看来路网址后缀带?ivk_sa=1024320u,
发布者 : 粮油菜大市场 发布时间 : 22 Nov 2021 14:24:05
还以为是被黑客入侵了,访问的后门地址之类的
网上搜素了一下,说是某厂商浏览器自动加的,估计是些广告账号的识别后缀吧,
小米等厂商也是这样的做的,内置很多垃圾内容,你一访问,一用,实际上都是给厂商创收的
所以当初小米平价甚至低于成本卖手机,真是高明,用户群体大了,随便薅一把,就满手的羊毛