Merge pull request #1182 from GetStream/hotfix/fileDownload
fix(ui): fix file download
This commit is contained in:
@@ -7,6 +7,7 @@ env:
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
types: [opened, synchronize, reopened, ready_for_review, converted_to_draft]
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
## Upcoming
|
||||||
|
|
||||||
|
🐞 Fixed
|
||||||
|
|
||||||
|
-[[#1180]](https://github.com/GetStream/stream-chat-flutter/issues/1180) Fix file download
|
||||||
|
|
||||||
## 4.2.0
|
## 4.2.0
|
||||||
|
|
||||||
🐞 Fixed
|
🐞 Fixed
|
||||||
|
|||||||
+2
-2
@@ -10,8 +10,8 @@ class Application : FlutterApplication(), PluginRegistrantCallback {
|
|||||||
super.onCreate()
|
super.onCreate()
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun registerWith(registry: PluginRegistry?) {
|
override fun registerWith(registry: PluginRegistry) {
|
||||||
PathProviderPlugin.registerWith(registry?.registrarFor(
|
PathProviderPlugin.registerWith(registry.registrarFor(
|
||||||
"io.flutter.plugins.pathprovider.PathProviderPlugin"))
|
"io.flutter.plugins.pathprovider.PathProviderPlugin"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -9,7 +9,10 @@ import 'package:url_launcher/url_launcher.dart';
|
|||||||
/// Launch URL
|
/// Launch URL
|
||||||
Future<void> launchURL(BuildContext context, String url) async {
|
Future<void> launchURL(BuildContext context, String url) async {
|
||||||
try {
|
try {
|
||||||
await launchUrl(Uri.parse(url).withScheme);
|
await launchUrl(
|
||||||
|
Uri.parse(url).withScheme,
|
||||||
|
mode: LaunchMode.externalApplication,
|
||||||
|
);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
ScaffoldMessenger.of(context).showSnackBar(
|
ScaffoldMessenger.of(context).showSnackBar(
|
||||||
SnackBar(content: Text(context.translations.launchUrlError)),
|
SnackBar(content: Text(context.translations.launchUrlError)),
|
||||||
|
|||||||
Reference in New Issue
Block a user