From 4e0d3bb4245801f45df74a3247dfd1e21d0fc0d7 Mon Sep 17 00:00:00 2001 From: kasem <“kasem.jaffer@gmail.com”> Date: Tue, 9 Apr 2024 09:32:55 -0700 Subject: [PATCH] Update readme --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 911eb8f4..25bf98a9 100644 --- a/README.md +++ b/README.md @@ -302,7 +302,7 @@ class _MyAppState extends State { super.initState(); // Listen to media sharing coming from outside the app while the app is in the memory. - _intentSub = ReceiveSharingIntent.getMediaStream().listen((value) { + _intentSub = ReceiveSharingIntent.instance.getMediaStream().listen((value) { setState(() { _sharedFiles.clear(); _sharedFiles.addAll(value); @@ -314,14 +314,14 @@ class _MyAppState extends State { }); // Get the media sharing coming from outside the app while the app is closed. - ReceiveSharingIntent.getInitialMedia().then((value) { + ReceiveSharingIntent.instance.getInitialMedia().then((value) { setState(() { _sharedFiles.clear(); _sharedFiles.addAll(value); print(_sharedFiles.map((f) => f.toMap())); // Tell the library that we are done processing the intent. - ReceiveSharingIntent.reset(); + ReceiveSharingIntent.instance.reset(); }); }); }