fix breaking change
This commit is contained in:
parent
0e9db0828f
commit
a67da8102d
2 changed files with 6 additions and 4 deletions
|
@ -284,7 +284,7 @@ class _HomeWidgetState extends State<HomeWidget> {
|
|||
void _initMediaShareSubscription() {
|
||||
// For sharing images coming from outside the app while the app is in the memory
|
||||
_intentDataStreamSubscription =
|
||||
ReceiveSharingIntent.getMediaStream().listen(
|
||||
ReceiveSharingIntent.instance.getMediaStream().listen(
|
||||
(List<SharedMediaFile> value) {
|
||||
setState(() {
|
||||
_shouldRenderCreateCollectionSheet = true;
|
||||
|
@ -296,7 +296,9 @@ class _HomeWidgetState extends State<HomeWidget> {
|
|||
},
|
||||
);
|
||||
// For sharing images coming from outside the app while the app is closed
|
||||
ReceiveSharingIntent.getInitialMedia().then((List<SharedMediaFile> value) {
|
||||
ReceiveSharingIntent.instance
|
||||
.getInitialMedia()
|
||||
.then((List<SharedMediaFile> value) {
|
||||
if (mounted) {
|
||||
setState(() {
|
||||
_sharedFiles = value;
|
||||
|
@ -380,7 +382,7 @@ class _HomeWidgetState extends State<HomeWidget> {
|
|||
//So to stop showing multiple CreateCollectionSheets, this flag
|
||||
//needs to be set to false the first time it is rendered.
|
||||
_shouldRenderCreateCollectionSheet = false;
|
||||
ReceiveSharingIntent.reset();
|
||||
ReceiveSharingIntent.instance.reset();
|
||||
Future.delayed(const Duration(milliseconds: 10), () {
|
||||
showCollectionActionSheet(
|
||||
context,
|
||||
|
|
|
@ -137,7 +137,7 @@ dependencies:
|
|||
pointycastle: ^3.7.3
|
||||
provider: ^6.0.0
|
||||
quiver: ^3.0.1
|
||||
receive_sharing_intent: ^1.6.7
|
||||
receive_sharing_intent: ^1.7.0
|
||||
scrollable_positioned_list: ^0.3.5
|
||||
sentry: ^7.9.0
|
||||
sentry_flutter: ^7.9.0
|
||||
|
|
Loading…
Add table
Reference in a new issue