How to open a file by default application using flutter? For example, I have a .txt file and want to open it using the device's default application. I think that there should be something like Process.Start() from .Net.
How to open a file by default application using flutter? For example, I have a .txt file and want to open it using the device's default application. I think that there should be something like Process.Start() from .Net.
open_file plugin didn't worked for me.
And that's where Android_Intent came to rescue.
In my case the meme type was video. And that's why following snippet seems to be working.
String path = "your_local_file_path";
final AndroidIntent intent = AndroidIntent(
action: 'action_view',
data: Uri.encodeFull(path),
type: "video/*");
intent.launch();
Update: addroid_intent has been discontinued and replaced with the community package android_intent_plus