r/FlutterDev • • 17h ago

Plugin I shipped smart_context_menu 1.1.0 with actions row, right-click, and hover.

Thumbnail
raw.githubusercontent.com
15 Upvotes

Hi, [r/FlutterDev](r/FlutterDev)! šŸ‘‹

Back in October, I shared my first Flutter package here, smart_context_menu: a configurable context menu styled like iOS menus. Items can have live updates, and submenus can be loaded on demand or fetch longer lists a page at a time.

A commenter asked for right-click support on desktop, and I'm glad to say that's now in 1.1.0 version. Thanks for the feedback! On desktop and web, you can now open the menu with a right-click or a two-finger click on a trackpad. Menu items highlight on hover, too.

I also added action rows. They let you group common actions like Copy, Share, and Rename (say, in a file menu) together. The rest of the actions can go in a regular list, or you can use an action row as the entire menu. For example, the drawing toolbar in the image has an action row with a Shapes button which opens a submenu to select a shape.

I wanted rows to be as flexible as the rest of the menu. They can be added anywhere, and can show icons with or without labels, use custom styling, or even render a cell with a custom widget. Items in a row can open paginated submenus and update while the menu is open.

Try the live demoĀ Ā Ā·Ā 90-second video overview

Package on pub.dev

I have a couple of questions for you.

1. cupertino_uiĀ - Has anyone here started usingĀ cupertino_uiĀ in their apps? Do you think it’s worth moving Smart Context Menu to it now, or would you wait?

2. Liquid GlassĀ - Are you already using Liquid Glass in your Flutter app, or planning to adopt it? How important is it to you that context menus use Liquid Glass too?

Happy Thanksgiving to everyone celebrating! 🦃


r/FlutterDev • • 9h ago

Discussion Play rejected our update because a card hid itself after the user granted a Health Connect permission

14 Upvotes

We read one health metric from Health Connect and show it in a single card. If the user granted permission but had no readings yet, we hid the card. It seemed tidy: nothing to show, so show nothing.

Play rejected the update. From the reviewer's side, they granted the permission and then nothing on screen used it, so the app looked like it was asking for health data it didn't need.

The fix was a boring empty state. The card now stays after permission is granted and says there are no readings yet. It went through after that.

Two things I took from it. Every health permission needs a visible feature a reviewer can find in a minute, even on an account with zero data. And "hide when empty" is a bad default for anything that sits behind a permission.

Has anyone else been caught in review by something that only happens on an empty account? Curious what other empty-state traps are out there.


r/FlutterDev • • 22h ago

Discussion RevenueCat vs in_app_purchase with a custom backend for Flutter subscriptions: where's the tipping point?

7 Upvotes

For Flutter apps with subscriptions, I see two common approaches: RevenueCat for fast setup or the in_app_purchase plugin plus a custom backend for receipt validation. RevenueCat saves a lot of time, but its cost grows with revenue and it adds a third-party dependency for a critical flow. At what point does going custom start to make sense: revenue size, need for custom entitlements or data ownership? And how much of the work (restore purchases, refunds, expired subscriptions, grace periods) did you underestimate?


r/FlutterDev • • 23h ago

Article Shorebird can now send a signed webhook when a release is created or a patch is promoted or rolled back

6 Upvotes

We just shipped outbound webhooks, and I know a few of you run Shorebird from CI, so I thought I'd post.

When something happens in your org, we POST to an HTTPS endpoint you run. On Business you get release, patch and channel events: release created, patch promoted to stable, rolled back or rolled forward, channel created or deleted. On Enterprise it can be any event in the audit log, so you can stream it into a SIEM instead of polling.

If you're wiring one up:

- Each delivery is one OCSF 1.9.0 API Activity event as JSON.

- It's signed per the Standard Webhooks spec (webhook-id, webhook-timestamp, webhook-signature headers), so any Standard Webhooks library can verify it.

- Return a 2xx within 5 seconds and do the slow work after. Timeouts, 408, 429 and 5xx get retried with backoff, up to 6 attempts.

- Retries keep the same webhook-id, so dedupe on that. Events can arrive out of order, so sort by `time`.

- Up to 5 webhooks per org, and there's a test ping button to check your endpoint.

- Scheduled changes (a patch approved to ship later, a scheduled rollout bump) show up in the audit log but aren't sent to webhooks.

Setup is Settings > Webhooks in the console. More in the blog post: https://shorebird.dev/blog/stream-shorebird-events-to-your-webhooks/?utm_source=reddit&utm_medium=social&utm_campaign=webhook-streaming-socials&utm_content=reddit-webhook-streaming-socials

Ask here or on Discord (https://discord.gg/shorebird). We're curious what you'd point this at besides a chat channel.


r/FlutterDev • • 12h ago

Discussion How do certain apps make a custom in app browser window?

4 Upvotes

I'm looking at some ecommerce apps and some of them have a slider as an in app browser rather than a new window. example of what im talking about here: https://imgur.com/a/AUJM13U
is this just them displaying the checkout link with a webview?


r/FlutterDev • • 7h ago

Discussion Can someone explain why ImageFiltered causes lag when it comes to blurring large amounts of text?

2 Upvotes

Genuinely curious.


r/FlutterDev • • 4h ago

Tooling An update on analyzer_kit

Thumbnail
1 Upvotes

r/FlutterDev • • 22h ago

Discussion Integration tests for an app with dozens of small screens: one big smoke test, or split it up?

1 Upvotes

I've been working on a Flutter puzzle app that has dozens of separate mini-games, each with its own board and input. Testing the game rules with unit tests was the easy part.

Integration tests are where it gets messy. A single test that opens every game and makes a move takes ages on an emulator, and any screen with a looping animation makes pumpAndSettle hang, so I keep adding hand-tuned pump durations.

If your app has lots of independent screens, how do you handle it? One big smoke test, one test per feature, or mostly widget tests with just a few real-device flows? Interested in what has actually held up for you.


r/FlutterDev • • 23h ago

Discussion Google Play Billing – ā€œYou Already Own This Itemā€ Error in Flutter

1 Upvotes

Hi everyone,

I have implemented In-App Purchases (subscriptions) in my Flutter application using Google Play Billing.

The first purchase flow works correctly:

- I added my Gmail account to the License Testing section in Google Play Console.

- The purchase popup opens successfully.

- I can complete the subscription without any issues.

However, when I try to purchase the same subscription again, I always get the following error:

ā€œYou already own this item.ā€

Things I have already tried:

  1. Refunded all test purchases from Google Play Console.

  2. Cleared Google Play Store cache and data.

  3. Uninstalled and reinstalled the application.

  4. Tried purchasing again after refunding.

  5. Switched Google accounts in the Play Store, but the app still seems to use the previous account.

Unfortunately, the issue is still not resolved.

My questions:

- Why does Google Play still consider the subscription active after it has been refunded?

- How can I completely reset the test purchase state?

- Why is the Play Store not recognizing the newly switched Google account?

- Is there any additional step required to test the same subscription multiple times?

I would really appreciate any guidance or suggestions from developers who have faced this issue.

Thanks in advance!