mcy_new #1
|
|
@ -54,5 +54,9 @@
|
||||||
</array>
|
</array>
|
||||||
<key>UIViewControllerBasedStatusBarAppearance</key>
|
<key>UIViewControllerBasedStatusBarAppearance</key>
|
||||||
<false/>
|
<false/>
|
||||||
|
<key>NSPhotoLibraryUsageDescription</key>
|
||||||
|
<string>为了更好的服务需要开启储存权限,用于保存批阅图</string>
|
||||||
|
<key>NSFileProviderDomain</key>
|
||||||
|
<string>为了更好的服务需要开启储存权限,用于保存批阅图</string>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
|
|
||||||
|
|
@ -49,8 +49,8 @@ class _StartPageState extends State<StartPage> with RequestToolMixin {
|
||||||
barrierDismissible: false,
|
barrierDismissible: false,
|
||||||
builder: (BuildContext context) {
|
builder: (BuildContext context) {
|
||||||
return AlertDialog(
|
return AlertDialog(
|
||||||
title: Text("权限拒绝"),
|
title: const Text("储存权限拒绝"),
|
||||||
content: Text("权限被永久拒绝,请前往权限设置页面通过权限"),
|
content: const Text("为了提供更好的服务,需要获取到存储权限用于保存批阅笔记"),
|
||||||
actions: [
|
actions: [
|
||||||
ElevatedButton(
|
ElevatedButton(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
|
|
@ -58,7 +58,7 @@ class _StartPageState extends State<StartPage> with RequestToolMixin {
|
||||||
Navigator.of(context).pop();
|
Navigator.of(context).pop();
|
||||||
_timerPermission = Timer.periodic(const Duration(seconds: 30), (_) => getStoragePermission());
|
_timerPermission = Timer.periodic(const Duration(seconds: 30), (_) => getStoragePermission());
|
||||||
},
|
},
|
||||||
child: Text('前往'),
|
child: const Text('前往APP权限设置'),
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue