mirror of
https://github.com/dstark5/Openlib.git
synced 2025-05-21 16:36:29 +08:00
fixed bugs
This commit is contained in:
@ -82,9 +82,8 @@ Future<void> downloadFile(
|
|||||||
throw err;
|
throw err;
|
||||||
});
|
});
|
||||||
|
|
||||||
Future.delayed(const Duration(seconds: 5), () {
|
|
||||||
mirrorStatus(true);
|
mirrorStatus(true);
|
||||||
});
|
|
||||||
cancelDownlaod(cancelToken);
|
cancelDownlaod(cancelToken);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
onDownlaodFailed();
|
onDownlaodFailed();
|
||||||
|
@ -53,9 +53,7 @@ class BookInfoPage extends ConsumerWidget {
|
|||||||
var errJson = jsonDecode(err.toString());
|
var errJson = jsonDecode(err.toString());
|
||||||
if (SchedulerBinding.instance.schedulerPhase ==
|
if (SchedulerBinding.instance.schedulerPhase ==
|
||||||
SchedulerPhase.persistentCallbacks) {
|
SchedulerPhase.persistentCallbacks) {
|
||||||
SchedulerBinding.instance.addPostFrameCallback((_) async {
|
SchedulerBinding.instance.addPostFrameCallback((_) {
|
||||||
await Future.delayed(const Duration(seconds: 2));
|
|
||||||
// ignore: use_build_context_synchronously
|
|
||||||
Navigator.push(context,
|
Navigator.push(context,
|
||||||
MaterialPageRoute(builder: (BuildContext context) {
|
MaterialPageRoute(builder: (BuildContext context) {
|
||||||
return Webview(url: errJson["url"]);
|
return Webview(url: errJson["url"]);
|
||||||
|
@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
|||||||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
||||||
# In Windows, build-name is used as the major, minor, and patch parts
|
# In Windows, build-name is used as the major, minor, and patch parts
|
||||||
# of the product and file versions while build-number is used as the build suffix.
|
# of the product and file versions while build-number is used as the build suffix.
|
||||||
version: 1.0.2+1
|
version: 1.0.3+1
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: '>=3.0.5 <4.0.0'
|
sdk: '>=3.0.5 <4.0.0'
|
||||||
@ -47,7 +47,6 @@ dependencies:
|
|||||||
path_provider: ^2.0.15
|
path_provider: ^2.0.15
|
||||||
permission_handler: ^10.4.3
|
permission_handler: ^10.4.3
|
||||||
open_file: ^3.3.2
|
open_file: ^3.3.2
|
||||||
# flutter_inappwebview: ^5.8.0
|
|
||||||
http: ^1.1.0
|
http: ^1.1.0
|
||||||
webview_flutter: ^4.4.1
|
webview_flutter: ^4.4.1
|
||||||
webview_cookie_manager: ^2.0.6
|
webview_cookie_manager: ^2.0.6
|
||||||
|
Reference in New Issue
Block a user