Handle sharing intents
This commit is contained in:
16
lib/providers/receive_sharing_intent_url.provider.dart
Normal file
16
lib/providers/receive_sharing_intent_url.provider.dart
Normal file
@@ -0,0 +1,16 @@
|
||||
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
||||
|
||||
part 'receive_sharing_intent_url.provider.g.dart';
|
||||
|
||||
@Riverpod(keepAlive: true)
|
||||
class ReceiveSharingIntentUrl extends _$ReceiveSharingIntentUrl {
|
||||
@override
|
||||
String? build() {
|
||||
return null;
|
||||
}
|
||||
|
||||
void setValue(String? value) {
|
||||
state = value;
|
||||
ref.notifyListeners();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user