Skip to content

Commit 9a595df

Browse files
committed
Remove deprecated dependencies
1 parent f0593e6 commit 9a595df

File tree

4 files changed

+21
-11
lines changed

4 files changed

+21
-11
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [0.0.7] - 2025-01-04
6+
7+
### Fix and Improve Documentation
8+
- Fix some deprecated dependency and update documentaiton.
9+
510
## [0.0.6] - 2025-01-04
611

712
### Improvement

example/lib/main.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// ignore_for_file: use_build_context_synchronously
2+
13
import 'package:flutter/material.dart';
24
import 'package:open_mail/open_mail.dart';
35

lib/open_mail.dart

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,8 @@ class OpenMail {
171171
String? launchScheme =
172172
installedApps.first.composeLaunchScheme(emailContent);
173173
if (launchScheme != null) {
174-
result = await launch(
175-
launchScheme,
176-
forceSafariVC: false,
177-
);
174+
result = await launchUrl(Uri.parse(launchScheme),
175+
mode: LaunchMode.externalNonBrowserApplication);
178176
}
179177
return OpenMailAppResult(didOpen: result);
180178
} else {
@@ -210,10 +208,8 @@ class OpenMail {
210208
} else if (_isIOS) {
211209
String? launchScheme = mailApp.composeLaunchScheme(emailContent);
212210
if (launchScheme != null) {
213-
return await launch(
214-
launchScheme,
215-
forceSafariVC: false,
216-
);
211+
return await launchUrl(Uri.parse(launchScheme),
212+
mode: LaunchMode.externalNonBrowserApplication);
217213
}
218214

219215
return false;

pubspec.yaml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: open_mail
22
description: A Flutter package to query the device for installed email apps and open them programmatically.
3-
version: 0.0.6
3+
version: 0.0.7
44
homepage: https://github.com/Cuboid-Inc/open_mail
55
repository: https://github.com/Cuboid-Inc/open_mail
66

@@ -19,8 +19,15 @@ dev_dependencies:
1919
sdk: flutter
2020
flutter_lints: ^4.0.0
2121

22-
# For information on the generic Dart part of this file, see the
23-
# following page: https://dart.dev/tools/pub/pubspec
22+
platforms:
23+
android:
24+
ios:
25+
26+
topics:
27+
- mail
28+
- open-mail
29+
- app
30+
- mail-app
2431

2532
# The following section is specific to Flutter packages.
2633
flutter:

0 commit comments

Comments
 (0)