Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[Request]: Allow uri + text together in ShareParams (for iOS support)

Open
#3,748 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
dart, flutter, ios, swift
Domain
mobile

Research direction

Start by inspecting share_plus's ShareParams validation and its platform implementations, then trace how iOS passes activity items to UIActivityViewController. Confirm that iOS accepts both text and uri, decide how non-iOS platforms should handle the pair, and update tests or documentation to show the completed platform behavior.

Written by the indexing model from the issue text.

Description

enhancement triage
Plugin

share_plus

Use case
Current Behavior
await SharePlus.instance.share(
 ShareParams(
  text: 'Check this out!'
   uri: Uri.parse(
    'https://example.com/page/123'
  ),
),

Results in

Invalid argument(s): uri and text cannot be provided at the same time

I see this restriction was added in https://github.com/fluttercommunity/plus_plugins/pull/3404#discussion_r2048771496 as a deliberate design choice. The discussion mentions being open to revisiting based on feedback :)

Feature request

I want to share a URL with a custom pre-filled message. Such that if a user clicks "iMessage" the custom text will be appended underneath the rich link preview.

iOS supports this natively - you just pass both to UIActivityViewController:

  UIActivityViewController(activityItems: ["Check this out!", url], applicationActivities: nil)
Proposal

Remove the restriction so iOS and make the small native code change for iOS to work. I've tested it and it works with minimal changes.

For non-iOS functionality (e.g. Android Intent.EXTRA_TEXT only has one slot ), we could either:

  • Fall back to uri-only
  • Concatenate them
  • Document the platform difference
Dominant language
Dart
Stars
1.9k
Forks
1.3k
Avg merge
6d 16h
Merged PRs (30d)
16

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from fluttercommunity/plus_plugins

All issues in fluttercommunity/plus_plugins

Similar issues

More Dart issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.