r/FlutterDev • • 4h ago

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

4 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 • • 20h 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 • • 2h ago

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

1 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 • • 5h 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 • • 8h 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

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 • • 19h 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 • • 20h 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 • • 21h 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 • • 14h 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 • • 18h 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!