add intent support for simple plain text

This commit is contained in:
Fabian Freund
2025-09-18 14:34:17 +02:00
parent 24c3cdbb94
commit a1bc9fa119
2 changed files with 9 additions and 0 deletions
@@ -35,6 +35,8 @@ final _sharingIntentTransformer =
StreamTransformer<Intent, ReceivedIntentParameter>.fromHandlers(
handleData: (intent, sink) async {
final data = switch (intent.action) {
'android.intent.action.PROCESS_TEXT' =>
intent.extra['android.intent.extra.PROCESS_TEXT'] as String?,
'android.intent.action.WEB_SEARCH' =>
intent.extra['query'] as String?,
'android.intent.action.VIEW' => intent.data,