File tree Expand file tree Collapse file tree 4 files changed +21
-11
lines changed
Expand file tree Collapse file tree 4 files changed +21
-11
lines changed Original file line number Diff line number Diff line change 22
33All 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
Original file line number Diff line number Diff line change 1+ // ignore_for_file: use_build_context_synchronously
2+
13import 'package:flutter/material.dart' ;
24import 'package:open_mail/open_mail.dart' ;
35
Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff line change 11name : open_mail
22description : 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
44homepage : https://github.com/Cuboid-Inc/open_mail
55repository : 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.
2633flutter :
You can’t perform that action at this time.
0 commit comments