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

Null-safety release #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/app_bar/certificates_info_popup.dart
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,7 @@ class _CertificateInfoPopupState extends State<CertificateInfoPopup> {
recognizer: TapGestureRecognizer()..onTap = () async {
final taskId = await FlutterDownloader.enqueue(
url: cRLDistributionPoints.crls![i],
savedDir: (await getExternalStorageDirectory()).path,
savedDir: (await getExternalStorageDirectory())!.path,
showNotification: true, // show download progress in status bar (for Android)
openFileFromNotification: true, // click on notification to open downloaded file (for Android)
);
Expand Down Expand Up @@ -982,7 +982,7 @@ class _CertificateInfoPopupState extends State<CertificateInfoPopup> {
recognizer: TapGestureRecognizer()..onTap = () async {
final taskId = await FlutterDownloader.enqueue(
url: value,
savedDir: (await getExternalStorageDirectory()).path,
savedDir: (await getExternalStorageDirectory())!.path,
showNotification: true, // show download progress in status bar (for Android)
openFileFromNotification: true, // click on notification to open downloaded file (for Android)
);
Expand Down
4 changes: 2 additions & 2 deletions lib/long_press_alert_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,9 @@ class _LongPressAlertDialogState extends State<LongPressAlertDialog> {
String fileName = path.substring(path.lastIndexOf('/') + 1);

final taskId = await FlutterDownloader.enqueue(
url: widget.hitTestResult.extra,
url: widget.hitTestResult.extra!,
fileName: fileName,
savedDir: (await getExternalStorageDirectory()).path,
savedDir: (await getExternalStorageDirectory())!.path,
showNotification: true,
openFileFromNotification: true,
);
Expand Down
3 changes: 2 additions & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

import 'dart:io';

import 'package:flutter/cupertino.dart';
Expand Down Expand Up @@ -58,7 +59,7 @@ void main() async {
browserModel!.setCurrentWebViewModel(webViewModel);
return browserModel;
},
create: (BuildContext context) => BrowserModel(null),
create: (BuildContext context) => BrowserModel(WebViewModel()),
),
],
child: FlutterBrowserApp(),
Expand Down
2 changes: 1 addition & 1 deletion lib/models/browser_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ class BrowserModel extends ChangeNotifier {
SharedPreferences prefs = await SharedPreferences.getInstance();
Map<String, dynamic> browserData;
try {
browserData = await json.decode(prefs.getString("browser"));
browserData = await json.decode(prefs.getString("browser")!);
} catch (e) {
print(e);
return;
Expand Down
Loading