|
|
@ -133,9 +133,9 @@ class _SplashPageState extends State<SplashPage> {
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
///定位权限申请
|
|
|
|
///定位权限申请
|
|
|
|
await Permission.locationWhenInUse.request();
|
|
|
|
// await Permission.locationWhenInUse.request();
|
|
|
|
final appProvider = Provider.of<AppProvider>(context, listen: false);
|
|
|
|
// final appProvider = Provider.of<AppProvider>(context, listen: false);
|
|
|
|
appProvider.startLocation();
|
|
|
|
// appProvider.startLocation();
|
|
|
|
|
|
|
|
|
|
|
|
///城市信息更新
|
|
|
|
///城市信息更新
|
|
|
|
await UserTool.dataProvider.init();
|
|
|
|
await UserTool.dataProvider.init();
|
|
|
|