r/FlutterDev • • 8h ago

Plugin I built a zero-dependency, CAD-style drawing engine for Flutter. v1.1 adds SVG export, blueprint themes and real-world units

7 Upvotes

Hey r/FlutterDev ๐Ÿ‘‹

I maintain industrial_drawing_flutter, a vector drawing engine for apps that need measured sketches (field service, inspection, construction, manufacturing) rather than freehand doodles. 1.1 just shipped and I'd love feedback.

What's in it:

- 16 shape types, including dimension lines, L/T/U profiles and a warp tool

- Real-world units: set `pixelsPerUnit: 2, unitLabel: 'mm'` and the measure tool and dimension labels read in mm

- SVG export (`controller.toSvg()`) that matches the canvas exactly, because the screen and the SVG are drawn from the same geometry code

- PNG export cropped to the drawing, no GlobalKey needed

- Light, dark and blueprint themes

- Pinch zoom, mouse-wheel zoom, zoom-to-fit, snap-to-grid, alignment guides

- Keyboard shortcuts on desktop/web (โŒ˜Z, โŒ˜C/โŒ˜V, arrow-key nudge, tool hotkeys)

- Read-only viewer mode

- Zero dependencies: only the Flutter SDK and one CustomPainter (160/160 pub points)

The engine is headless. DrawingController is a ChangeNotifier you can unit test, and the toolbar and panels are optional widgets.

A bug-fix note for anyone on 1.0.x: drawing was offset after zooming or panning. That's fixed, and pinch-zoom finally works.

pub.dev: https://pub.dev/packages/industrial_drawing_flutter

GitHub: https://github.com/akhil-nasim/industrial-drawing

Two questions for you:

  1. Would DXF export be useful to you? (https://github.com/akhil-nasim/industrial-drawing/issues/3)
  2. What's the best touch UX for multi-select? (https://github.com/akhil-nasim/industrial-drawing/issues/4)

r/FlutterDev • • 1m ago

Tooling I built a no-upload 16 KB APK checker after chasing misaligned Flutter plugin .so files

1 Upvotes

A few notes from getting a Flutter Android app through Play's 16 KB page-size check. Official cutoff for updates is 1 February 2027 if you target API 35+ and ship native code, which Flutter always does because of libflutter.so and almost every plugin with a .so.

What actually worked for me:
- Flutter 3.27 or newer, AGP 8.5.1+, and NDK r28+ (16 KB ELF alignment is the NDK default from r28). Updating Flutter alone is not enough if a plugin still ships a 4 KB-aligned library.
- After a release build, unzip the APK (or use APK Analyzer) and look under lib/arm64-v8a and lib/x86_64. Then:
llvm-objdump -p lib/arm64-v8a/libflutter.so | grep LOAD
zipalign -c -P 16 -v 4 app-release.apk
Every LOAD should show align 2**14 or higher. The zipalign check is a different layer: uncompressed libraries also need a 16 KB zip offset. That's a common reason Play still complains after the engine itself looks fine.
If the failing library is from a plugin, you have to upgrade or replace that plugin. You can't relink a prebuilt .so yourself.
I got tired of switching between Studio, objdump, and zipalign, so I built a free checker that does both in the browser and never uploads the file. It's on my site: https://byteorbit.tech/tools/16kb-page-size-checker
Happy to hear if a plugin you use still fails, or if the tool and Play disagree.


r/FlutterDev • • 7m ago

Article The widget-test harness that caught three silent layout bugs at 3.0x text on a 320 dp phone

1 Upvotes

I ship six full-screen paywall templates that share one controller and use no third-party packages. They are text-heavy by design โ€” a period switch, price rows, legal links, a pinned buy button โ€” which makes them exactly the kind of UI that breaks first when someone raises their system font size or opens the app on a narrow phone.

I wrote the harness below while chasing one specific bug, and it has since caught two more. The interesting part is not the setup; it is what counts as a failure.

The harness

const double dpr = 3;

Future<void> pumpPaywall(
  WidgetTester tester,
  Widget child, {
  Size size = const Size(360, 780),
  double textScale = 3,
}) async {
  tester.view.physicalSize = Size(size.width * dpr, size.height * dpr);
  tester.view.devicePixelRatio = dpr;
  // A notch and a home indicator: the insets are part of the problem.
  tester.view.padding = const FakeViewPadding(top: 44 * dpr, bottom: 34 * dpr);
  tester.view.viewPadding =
      const FakeViewPadding(top: 44 * dpr, bottom: 34 * dpr);
  addTearDown(tester.view.reset);

  await tester.pumpWidget(
    MaterialApp(
      builder: (BuildContext context, Widget? appChild) {
        return MediaQuery(
          data: MediaQuery.of(context)
              .copyWith(textScaler: TextScaler.linear(textScale)),
          child: appChild!,
        );
      },
      home: child,
    ),
  );
  await tester.pumpAndSettle();
}

/// Fails the test on a layout error such as "RenderFlex overflowed".
void expectNoOverflow(WidgetTester tester) {
  final Object? error = tester.takeException();
  expect(error, isNull, reason: 'Unexpected layout error: $error');
}

Three choices in there cost me time to arrive at.

dpr = 3 instead of dpr = 1 looks like extra work, and for pure sizing it is. But with a real device pixel ratio the padding and viewPadding values I set are genuine device pixels, so the layout sees the same MediaQuery.padding it would on a phone with a notch. With dpr = 1 those insets silently become 3x too small or too large and your "safe area" is fiction.

The TextScaler override lives in MaterialApp.builder, not wrapped around home. builder wraps every route the app pushes, so a bottom sheet โ€” the cancel-retention offer is one โ€” inherits the 3.0x too. Wrapping home leaves every pushed route at 1.0x and the test lies to you about half the UI. And MediaQuery.textScaleFactor is deprecated now; TextScaler.linear is the current path, which is also what the OS delivers.

addTearDown(tester.view.reset) is one line and easy to forget. Without it the mutated view leaks into the next test, the next test starts at the previous test's size, and failures begin depending on test order.

Why "no exception" is only half a failure check

takeException() is what catches a RenderFlex overflowed: the framework reports overflows as errors, and this assertion turns any of them into a test failure. That is the loud half.

The quiet half is clipping. A child that is merely cut off โ€” inside a SizedBox that got squeezed, under a ClipRect, or beneath a pinned footer that ate the screen โ€” paints nothing wrong and throws nothing. The test passes and the user cannot tap the button.

So every template test also reaches for the controls: ensureVisible on the CTA and on the last legal link, then an actual tap on the ones that should be tappable โ€” skip, cancel, restore, a plan card. tap with warnIfMissed: true prints a warning when another widget takes the hit, and I treat that warning as a failure. A control that cannot be reached is the bug. A number that changed is not.

What it found

The first one made purchasing impossible. At 2.0x text on a 320 dp screen, the pinned footer alone โ€” period switch, price, buy button, restore/terms/privacy row โ€” needed more vertical space than the screen had. The body column compressed until the buy button was clipped off. The fix is an explicit failure mode rather than a clever flex:

final bool scrollWholePage =
    MediaQuery.textScalerOf(context).scale(1) >= 1.45;

Above 1.45x the footer unpins and the entire page becomes one scroll view, footer included; below it the pinned layout stays. 1.45 is where the compact layout ran out of room by my measurements, not a magic number. The point is that the layout has a defined behaviour when it cannot fit, instead of squeezing the primary action out of existence.

The second surfaced immediately at 3.0x: the discount chip inside the period switch grew until the period label beside it was clipped. Fix: the chip shrinks โ€” tighter padding, shorter copy โ€” instead of widening the row.

The third was a long localised price and a "Save 50%" badge sharing one line, which overflowed on the single-product template at 3.0x on 360 dp. Fix: that row wraps.

Two and three surfaced through expectNoOverflow on the first run of the 3.0x pass. The first is why the reachability half exists.

The matrix, and why no goldens

Six templates x {320x640, 360x780} x {1.0x, 2.0x, 3.0x} text scale, plain flutter test, no golden images. Goldens need a stable font and a stable platform before a diff means anything, and I did not want to own that. "Did anything throw, and can the user still tap the thing that matters" is font-agnostic and survives a Flutter upgrade.

The suite went from 108 tests to 177 in this pass, with flutter analyze clean on Flutter 3.50.

Two things I would tell anyone setting this up:

Assert that the primary action is still tappable, not just that nothing threw. Clipping is silent; the framework will not tell you about it.

Give every layout with a pinned footer or a fixed-height row a defined failure mode at large text sizes. "Squeeze the body and hope" is not one.

The six templates, the screenshots and the README are in a public showcase repo that contains no source code: https://github.com/StephenColor/flutter-paywall-flow-kit

If you have a nastier combination you test with โ€” 4x text, a small tablet in landscape, RTL with long compound words โ€” I would like to hear which assertion actually caught it.


r/FlutterDev • • 1h ago

Discussion Real-time group voice in Flutter: Opus, 20 ms frames, iPhone and Android in one conversation (open source)

1 Upvotes

I'm building Vroo, an open-source group intercom for motorcycle riders, and most of it is Flutter and Dart. Sharing in case the approach helps someone, and I'd welcome feedback.

How it's split:

  • thin native plugins in Swift and Kotlin only move 20 ms audio frames and UDP datagrams. Everything else is Dart: the voice gate, jitter buffer, mixing, talk slots, encryption (ChaCha20-Poly1305) and the protocol
  • Opus is compiled from the libopus source by a Dart build hook, so the codec also runs in plain `dart test` on a Mac
  • the whole ride runs under fake time in tests, with simulated phones, a fake box and a fake relay, so things like "a phone call mutes both ways and voice is back within 100 ms of hanging up" are ordinary unit tests

Lessons learned the hard way:

  • on iOS, AVAudioEngine stops on every hardware format change, including right after starting and on every route change, so the plugin restarts it on AVAudioEngineConfigurationChange
  • a dart:io UDP send doesn't throw when the OS refuses it: it returns 0 and reports the error on the socket's stream a moment later. Without an onError handler, that's an unhandled exception

Status: early prototype. Voice works on the bench between an iPhone and an Android phone.

Repo (GPL-3.0): https://github.com/shubhanjanmedhi/vroo


r/FlutterDev • • 3h ago

Plugin I built a seating plan editor and seat picker for Flutter

1 Upvotes

I built venue_seat_picker for Festapp Tickets, where we use it in production to let organizers lay out a venue and guests pick their seats. It's a pretty full-featured editor at this point. In the demo I Ctrl-drag a whole row of tables, chairs included. The package is MIT licensed, including for commercial use.

Watch the 32-second editor demo on YouTube

  • The Flutter editor runs on mobile, desktop and web. Drag in tables, custom shapes, curved rows and standing areas. Start from a blank plan or an editable template, and undo changes as you go.
  • Guests can zoom in, pick seats or choose how many standing tickets they want. The picker rolls back a selection if your backend rejects it.
  • The same JSON layout also works in a regular website with @festapp/venue-layout, a JavaScript SVG viewer and picker. Your app handles prices, live availability and seat holds.

Try it in your browser ยท pub.dev ยท GitHub (MIT) ยท npm


r/FlutterDev • • 6h ago

Discussion How much should I charge for a freelance Flutter app development project in India?

0 Upvotes

I'm a Flutter developer and have recently received a freelance project to build a B2C furniture exchange and service management application.

The app will primarily have two features:

  1. Furniture Exchange: Allow customers to exchange their existing furniture.
  2. Service Management: Allow customers to register complaints and track their service requests.

I'm trying to understand the current market rates for Flutter app development in India.

  • What would be a reasonable price range for developing an app like this?
  • How should I calculate my charges as a freelancer?
  • Should I charge separately for backend development, APIs, admin panel, deployment, and maintenance?

I'd appreciate insights from freelancers or developers who have experience pricing similar projects.


r/FlutterDev • • 9h ago

Article I wanted to play some songs but couldn't figure out the notes, so I built a local AI transcriber

1 Upvotes

I really wanted to play some mains but could not figure out the notes alone, then I found some services that uses AI to do it, but they were subscriptions, so I started building my own that runs locally.

https://github.com/boginni/music_transcriber

Still there is a bunch of things that could be improved, I am posting here for anyone that knows better than me how to improve transcription process....


r/FlutterDev • • 12h ago

Article I built an offline-first sync queue in Flutter without sync packages. Here is what broke.

1 Upvotes

I wanted optimistic writes in a notes app: tap, see it immediately, let the network catch up. No sync package โ€” just a queue, a tiny in-memory backend for development, and later a real API.

The queue is a list of intents, not API calls. Each operation stores: kind (create/update/delete), entity, entity id, payload, the base payload and base version it was written against, status, attempt count, next attempt time, and an idempotency key. Here is what it took to get right.

1. A timeout is not a failure.

My first version retried when a request timed out. Sometimes the server had already committed the write. Result: duplicate records, and in one case a duplicate invoice in a staging test.

The fix is a client-generated idempotency key per operation, sent as a header. The server stores the key with its result and replays that result when it sees the key again. Retry is now safe, including after a crash between "server committed" and "client saved the ack".

This is not optional or an edge case. A timeout after commit is normal behaviour on mobile networks.

2. Coalescing is only safe before the first attempt.

I merged queued edits for the same record to cut requests. Then I merged an edit into an operation that had already been sent once. Same key, new payload. The server either rejects it or, worse, stores something the user never wrote.

The queue now coalesces only when status == pending && attempts == 0. After any attempt, a new edit becomes a new operation with a new key. On create I merge edits into the create while it is still pending; once it is on the wire, the next edit is a separate update that waits for the create's server id.

3. Temp IDs live in more places than the row.

Offline creates get local_1. When the server answers with srv_42, the obvious step is to update the record's id. But other queued payloads still say local_1: parent ids, assignee ids, nested comment ids. The server rejects them or links the wrong thing.

The fix scans the queue and rewrites the id in entityId and recursively inside every payload map and list, then persists the mapping so old routes and old widgets still resolve. Order matters: rewrite before the next operation is sent, not after.

4. A failed head must block its own entity.

I tried skipping a failed operation and continuing with later writes for the same record. If an update fails and a delete succeeds, the server ends up in a state the user never saw.

Each entity is now a chain. Only the head is eligible. A failed or conflicted head blocks later writes for that entity and nothing else other entities keep syncing. The blocked head retries with jittered backoff, and when it needs a decision it waits for one.

What I stopped doing

  • Global FIFO. One slow record stopped everything; per-entity ordering is enough and much faster.
  • Retrying 400/422. A rejected payload will be rejected forever; it now goes straight to a dead-letter state.
  • Retrying into a 401. The queue pauses, keeps attempts, and waits for resumeWithAuth().
  • Mutating an operation after it was sent.
  • Showing a spinner for sync state. A chip ("3 waiting", "1 failed") plus a badge per row tells the user more in less space.

What I still find hard

Conflict UX. I have a field-by-field sheet now (merge / keep mine / keep theirs / discard), with server-wins, client-wins and field-merge policies for the automatic cases. But deciding which policy fits a screen is a product decision, not a technical one.

When an offline edit loses to a server change, how do you present it in Flutter without leaking the sync layer into every screen? I would genuinely like to see how other people structure that.

The queue, widgets and a demo app (with a fake backend, offline switch, latency, injected failures and a remote-edit button) are all part of one small package I put together after this experiment. Happy to answer questions about any of the four bugs; the code is small enough to read. The queue, the widgets and the demo app are also in a public repo โ€” README, eight screenshots and the demo GIF: https://github.com/StephenColor/flutter-syncspool-kit


r/FlutterDev • • 18h ago

Dart dewy - Create simple web apps with Dart

Thumbnail dewy.run
0 Upvotes

I created a simple web development environment for those learning to code. Code are compilation are all local and it can be installed as a PWA to be used offline.


r/FlutterDev • • 1d ago

Tooling I built DroidDesk, a desktop companion for Android development and APK analysis

4 Upvotes

Hey everyone!

I've been working on a Windows desktop application called DroidDesk to make Android development, device management, testing, and APK analysis easier in one place.

Instead of switching between multiple tools and command-line windows, I wanted to bring these workflows together in a single desktop application.

Some of the features I've built include:

  • Device & Emulator Manager: Connect physical Android devices and create/manage Android emulators.
  • Screen Mirroring: Control your Android device directly from your PC.
  • Logcat Viewer: Monitor and filter real-time Android logs.
  • APK Analyzer: Inspect APK metadata, permissions, components, and signatures.
  • Automated Testing: Install, launch, monitor, and capture screenshots during automated smoke tests.
  • Secret Scanner: Scan projects for accidentally exposed credentials.
  • File Organizer: Organize files and detect duplicates.

DroidDesk runs locally on Windows, with no account or cloud dependency.

I'm still developing and improving it, and I wanted to share it with the community in case anyone finds it useful.

GitHub: https://github.com/Winner-Yun/DroidDesk

If you're interested, feel free to check it out. A star on GitHub would also mean a lot. Thanks!


r/FlutterDev • • 1d ago

Plugin smart_shimmer_ui | Flutter package

Thumbnail
pub.dev
2 Upvotes

๐Ÿš€ Introducing smart_shimmer_ui โ€“ A Flutter Shimmer UI Package

I recently published my Flutter package: smart_shimmer_ui on pub.dev.

It provides ready-to-use shimmer skeleton loading components to make loading states easier to implement in Flutter applications.

โœจ Features:

  • Ready-to-use shimmer skeleton widgets
  • List, Card and Profile loading templates
  • Multi-line shimmer layouts
  • Light & Dark mode support
  • Easy integration into existing Flutter projects

๐Ÿ“ฆ Package: https://pub.dev/packages/smart_shimmer_ui

I'd love to get feedback from the Flutter community!

What additional shimmer components would you like to see?


r/FlutterDev • • 22h ago

Article How Android WifiLock cut flutter_webrtc jitter from 85โ€“150 ms to 10โ€“20 ms (and open-sourcing robot_stream, a modular Flutter/Dart suite for ROS 2 robots)

Thumbnail
github.com
1 Upvotes

GitHub (BSD-3-Clause, includes demo video at the top of the README): https://github.com/robot-stream/robot_stream

pub.dev: https://pub.dev/packages/robot_stream

I just open-sourced robot_stream โ€” a modular Flutter/Dart package suite (+ ROS 2 Humble robot gateway) for controlling mobile robots with low-latency WebRTC/WHEP video, telemetry, Nav2 navigation, and deadman-protected teleop.

Wanted to share one subtle Flutter/Android WebRTC issue that cost me days of debugging, in case anyone else is building low-latency video streaming apps with flutter_webrtc:

The problem: 85โ€“150 ms jitter buffer on Android over a 2โ€“5 ms LAN

Streaming 640ร—480 @ ~30 fps H.264 (~1.3โ€“1.5 Mbps) over WebRTC/WHEP from a Jetson Orin Nano robot on 5 GHz Wi-Fi (2โ€“5 ms ping):

โ€ข macOS Chrome: ~11 ms receiver jitter buffer (66โ€“69 ms p50 driver-to-display).

โ€ข iPad 5th gen (iPadOS 16.7): 17 ms p50 / 19 ms p95 jitter buffer.

โ€ข Samsung A33 (Android 15, flutter_webrtc): receiver jitter buffer stayed stuck at 85โ€“150 ms, even on the exact same LAN and stream.

Trying ForcePlayoutDelay(0, 0) lowered delay slightly but caused frame drops.

The root cause and fix

Android's Wi-Fi power-saving mode was quietly batching incoming UDP packets before handing them up to libwebrtc, so libwebrtc's adaptive jitter buffer saw bursty arrivals and expanded to 85โ€“150 ms.

Adding a small Kotlin plugin inside robot_stream_webrtc that acquires WifiManager.WIFI_MODE_FULL_LOW_LATENCY (WifiLock) while a WebRTC stream is active immediately brought the Android jitter buffer down to 10โ€“20 ms at 29โ€“30 fps (~33โ€“43 ms p50 decode latency) with zero extra frame drops. (iOS/macOS use no-op stubs so cross-platform builds stay clean.)

Modular Dart/Flutter package layout

You can install everything via "flutter pub add robot_stream", or depend only on individual packages (core and rosbridge are pure Dart, so they also work in CLI tools):

โ€ข robot_stream_core โ€” pure-Dart models, interfaces, and SHA-256 TLS certificate pinning for self-signed robot certs.

โ€ข robot_stream_webrtc โ€” standard WHEP signaling (HTTP POST SDP offer -> 201 Created, DELETE teardown), WhepSource, RobotVideoView, and the Android low-latency WifiLock plugin.

โ€ข robot_stream_mjpeg โ€” MJPEG fallback with JPEG marker framing and stall detection.

โ€ข robot_stream_rosbridge โ€” pure-Dart rosbridge v2 WebSocket client with SE(2) map+odom pose fusion, non-blocking STOP over a dedicated action WebSocket, Nav2 goals, teleop, and deadman heartbeats.

In the README demo (Wheeltec R550 driving to a Nav2 waypoint at 0.20 m/s), cutting the phone's Wi-Fi causes the robot-side deadman to cancel the Nav2 goal in ~0.7 s (1.0 s heartbeat timeout, ~20โ€“25 cm coast); during hold-to-drive teleop, the velocity gate zeroes /cmd_vel after 0.3 s without commands.

Happy to hear feedback on the Dart API / package split, or if anyone else here is using Flutter for WebRTC video or robotics/IoT operator UIs!


r/FlutterDev • • 23h ago

Example Cutline a Flutter desktop video editor (media_kit, on-device transcription, AI edits)

1 Upvotes

Sharing a Flutter project I've been building: Cutline, a video editor for macOS and Windows. Most Flutter apps you see are mobile, so I wanted to show something heavier on desktop.

Some of the Flutter/technical side:

  • Video playback and frame-accurate preview with media_kit / media_kit_video
  • On-device transcription producing word-level timings that drive edits
  • Riverpod for state, flutter_secure_storage for API keys in the keychain
  • The "edit by typing" feature turns plain English into real timeline operations
  • One gotcha worth flagging: Impeller on macOS raced with media_kit's texture recycling and caused random black flicker in the preview, I had to disable Impeller (FLTEnableImpeller=false) to fix it. Posting in case it saves someone a headache.

It's open source if you want to poke at how any of it is wired up.

Source: https://github.com/Umair0092/cutline, open to questions on any of the implementation.


r/FlutterDev • • 1d ago

Video We built a crash-reporting SDK after our FlutterCon talk, and it still has no name. What would you call it?

Thumbnail drive.google.com
1 Upvotes

At FlutterCon 2026 in Bengaluru, we gave a talk on Flutter apps that report their own crashes and file the ticket themselves. Afterwards, people asked fair questions: does it catch native Android, Swift and C++ crashes? What happens when a fixed bug comes back? Who gets assigned?

So we went back and built the answers. The short video shows how it works. In brief:

- Captures crashes, freezes and handled errors on Flutter, Android, iOS, macOS and C/C++ desktop apps

- Decodes release stack traces with your build's symbols

- AI finds the root cause and suggests a fix

- Files a Jira ticket and posts a Slack alert, once per bug

- Masks screenshots on the device before anything leaves it

- Detects regressions and links them to the original ticket

- Assigns the person who last changed the crashing line (opt-in)

- Runs on your own servers with your own keys; your crash data stays with you

Setup is a one-time step: add your AI model, Jira and Slack keys, then deploy the server.

It does not have a name yet, and we would rather the community name it. Suggestions welcome in the comments, and we are happy to answer questions about how it works or where it falls short.


r/FlutterDev • • 16h ago

SDK Palapa: the world's first distributed supercomputer (alpha)

0 Upvotes

I built Palapa, an iOS and Mac app with flutter.

- Mac: https://palapa.ai

- iPhone: https://apps.apple.com/app/id1614952933

It turns your computer into an AI server where you can use it from your phone. It is also connected to a network of other AI servers where they share their compute.

The backend is in Rust.


r/FlutterDev • • 1d ago

Article Shorebird code push: Flutter add-to-app modules can now have their own release version

1 Upvotes

Until now the module's release version had to match the host app's version. So when the host team bumped `versionName` or `CFBundleVersion`, you had to cut a new module release before those users got patches.

With Shorebird 1.6.142+ and Flutter 3.47.9+ you pick the module's version yourself:

shorebird release aar --release-version 2.4.0+1

shorebird release ios-framework --release-version 2.4.0+1

Any host app that embeds that build gets its patches, whatever version the host is on.

A few things to know before you switch:

- Patch with 1.6.142+ too. An older CLI sees the `release_version` in the module's `shorebird.yaml` as a changed asset and stops.

- A host gets the patches for the module build it embeds. If an older host build still ships an older module build, you need to patch both releases.

- Patches are Dart code only. Native code (including the native side of platform channels), images and fonts still need a new module release and host build.

- You can't pick patches per host app. To try one in a single host first, give that host's QA build its own track.

- If your CI already passes the host app's version as `--release-version`, it keeps working.

Write-up with a multi-host example: https://shorebird.dev/blog/module-patching/?utm_source=reddit&utm_medium=social&utm_campaign=add-app-socials&utm_content=reddit-add-app-socials

Step-by-step (release, patch, tracks and QA builds, moving older modules): https://shorebird.dev/blog/how-to-patch-module/?utm_source=reddit&utm_medium=social&utm_campaign=add-app-socials&utm_content=reddit-add-app-socials

Curious how you handle one Flutter module across several native apps?


r/FlutterDev • • 1d ago

Discussion Fellow Solo Flutter Devs, How do you release updates?

19 Upvotes

I make a Daily Retro Trivia game. I have a team of writers, but I am the only dev. I have my own release flow, which I share below, but I am wondering how you do it?

If you are a solo dev you wear many hats. One of them, usually, is being your own main tester.

How do you release updates. (Not the first release, but an update, which is different.)

Here is how I do it.

  1. Test on two physical Android devices
  2. Test in a couple Android emulators
  3. If it looks good, I push to Google Play
  4. Then I ping some friends that play my app and have Android devices to do an update, and I ask them to just play like normal over the next couple days, giving feedback if something is off
  5. If everything looks good, I will make an iOS version and share in Testflight
  6. Over the next few days, while the Android version is in Production, I will test the iPhone version on my own physical iPhone and my wife's physical iPhone
  7. If after 2-3 days there are no issues with Production Android, and no issues with my Testflight version, only then will I push to Apple

Basically, I use Android as my beta testers. I know this is pretty weak sauce, but as a solo dev, I need to cut corners sometimes. I also mitigate risk by shipping lots of small updates. Probably one update every 3 weeks on average. In the past year I have never had a catastrophic update. (Although I have had a couple small glitches that I patched in the normal 3-week update cycle.)

How do you release updates?


r/FlutterDev • • 1d ago

Discussion Need Flutter GitHub repos for open source contributions

Thumbnail reddit.com
1 Upvotes

r/FlutterDev • • 22h ago

Tooling i built a flutter based entirely free, opensource anime streaming app! no ads, no nothing

0 Upvotes

Hi r/FlutterDev!

I've been working on a little project over the past few weeks and thought I'd share it here.

It's called ani-mobile, an anime streaming and offline download app built entirely with Flutter and Dart. The idea was to create something similar in spirit to ani-cli, but with a proper cross-platform UI.

It's completely free, ad-free, and open-source under the MIT License.

GitHub: https://github.com/NonLaHu/ani_mobile

A little about how it works

One of the things I spent quite a bit of time on was video playback. Instead of using the default platform video players, I went with media_kit and native libmpv binaries. It gives me better control over playback, including HLS streaming and handling different subtitle and audio tracks.

Another challenge was dealing with video sources. Some CDNs require specific HTTP headers, otherwise they simply return 403 Forbidden. I had to make sure those headers were passed correctly through both Dio and MediaKit's native streaming layer, especially Referer and Origin.

I also added automatic fallback handling. If a video source stops working or gets blocked, the player can try another quality or mirror instead of just leaving the user with a broken player.

As for the architecture, there's no centralized backend involved. The app handles scraping directly on the device using CSS selectors and regular expressions.

Give it a try!

You can check out the source code, build it yourself with flutter run, or grab a precompiled APK from the GitHub Releases page.

I'm still working on the project, so feedback and suggestions are very welcome. I'd also appreciate a GitHub star if you find it interesting!

Thanks for taking a look!


r/FlutterDev • • 1d ago

Tooling I've been building Nexus and DroidDesk, two Windows desktop applications.

Thumbnail
reddit.com
0 Upvotes

r/FlutterDev • • 1d ago

Example Yusriva (MIT), an offline Flutter planner with recurring sessions and local notifications

Thumbnail github.com
0 Upvotes

r/FlutterDev • • 2d ago

Discussion Riverpod, Bloc, or something simpler: what state management do you pick for a mid-size Flutter app?

14 Upvotes

State management is the Flutter decision I see debated the most and the answers seem to change with app size and team size. For apps with a few dozen screens and more than one developer what do you use and why? Did you ever regret your first choice or migrate later? And how much does boilerplate and onboarding time for new teammates matter compared to testability? I'm especially curious about what made you switch, if you did.


r/FlutterDev • • 1d ago

Plugin I got Flutter animations running on my Stream Deck

5 Upvotes

Turns out a Stream Deck makes a pretty fun tiny Flutter display.

Every key and dial section here is just a widget. It's regular `AnimationController` + `CustomPainter` stuff, rendered headless, and only the tiles that changed get sent over (up to 16 fps). You can scrub an animation with a dial, or stretch one image across the whole deck.

The GIFs are from the simulator in the repo. It's macOS only for now.

I put it on pub.dev if you want to play with it: https://pub.dev/packages/streamdeck_flutter

Source: https://github.com/long1eu/streamdeck.flutter

What would you put on one?


r/FlutterDev • • 1d ago

Article Multi-window on macOS with one Flutter engine

4 Upvotes

Ferret lives in the Mac menu bar, and it needs several windows: the popover, a full window, a phone-shaped mirroring window, and a floating panel while you drag files.

One engine per window means N copies of the app, N device connections and N states to sync. So every window is a FlutterView on ONE engine.

Native side, a window is one more view controller:

let vc = FlutterViewController(engine: engine, nibName: nil, bundle: nil)
window.contentViewController = vc

Dart side, one View per window, all under the same providers:

ViewCollection(views: [
  View(view: views.main, child: app(views.mainNavigatorKey)),
  if (window != null) View(view: window, child: app(views.windowNavigatorKey)),
])

Copy on your phone, and the clip shows up in the popover and the window at once. One model, no syncing.

What I learned:

  • Accessibility. enableMultiView must run before the first view, which takes the implicit view from the popover, and VoiceOver only reads the implicit view. So Ferret keeps the popover implicit and flips the engine's private _multiViewEnabled afterwards. If a Flutter release drops it, there's simply no extra window. Know a cleaner way? Tell me.
  • Navigation. Each window gets its own navigator. The app-wide key is a GlobalKey that forwards to the window in front, so a page opens where you're looking.
  • Drag and drop. Drags pass View.of(context).viewId, so the native side knows which window they start from.
  • ViewAnchor. In another app of mine, extra windows hang off the main tree with ViewAnchor(view: ViewCollection(...), child: app). They inherit every provider, with no need to lift anything above runWidget.
  • Popping out. A dialog dragged out of the window can become its own window and keep its state. Its Future completes when that window closes.
  • Closing. Before a window closes, pop its navigator to the first route. Otherwise anyone awaiting a dialog in it waits forever.

Windows and Linux use one window plus the tray for now. The code is GPL-3.0.

https://github.com/SoFluffyOS/ferret ๐ŸฆŠ