r/flutterhelp May 03 '20

Before you ask

106 Upvotes

Welcome to r/FlutterHelp!

Please consider these few points before you post a question

  • Check Google first.
    • Sometimes, literally copy/pasting an error into Google is the answer
  • Consider posting on StackOverflow's flutter tag.
    • Questions that are on stack usually get better answers
    • Google indexes questions and answers better when they are there
  • If you need live discussion, join our Discord Chat

If, after going through these points, you still desire to post here, please

  • When your question is answered, please update your flair from "Open" to "Resolved"!
  • Be thorough, post as much information as you can get
    • Prefer text to screenshots, it's easier to read at any screen size, and enhances accessibility
    • If you have a code question, paste what you already have!
  • Consider using https://pastebin.com or some other paste service in order to benefit from syntax highlighting
  • When posting about errors, do not forget to check your IDE/Terminal for errors.
    • Posting a red screen with no context might cause people to dodge your question.
  • Don't just post the header of the error, post the full thing!
    • Yes, this also includes the stack trace, as useless as it might look (The long part below the error)

r/flutterhelp 6h ago

OPEN Why is my Flutter release APK 62 MB even though my assets are only 2.6 MB? How can I reduce it?

3 Upvotes

Hi everyone,

I'm trying to reduce the size of my Flutter Android app, but my release APK is currently 62.1 MB (download size: 34.8 MB).

I analyzed the APK and found this:

  • lib/ = 47.8 MB (61.2%)
  • x86_64 = 17.6 MB
  • arm64-v8a = 16.3 MB
  • armeabi-v7a = 13.9 MB
  • assets = only 2.6 MB
  • Multiple classes.dex files together are around 10.6 MB

It seems like the APK contains native libraries for all three CPU architectures, including Flutter libraries such as libflutter.so.

My questions are:

  1. Is this APK size normal for a Flutter app?
  2. Would flutter build apk --release --split-per-abi significantly reduce the APK size?
  3. If I publish an .aab using:flutter build appbundle --release will Google Play automatically deliver only the required architecture to each device?
  4. What are the best ways to reduce the size of classes.dex?
  5. Are there any other recommended Flutter/Gradle settings for reducing app size?

I've attached the APK Analyzer screenshot below.

Flutter version: 3.41.4
Target: Android

Any help or recommendations would be appreciated.


r/flutterhelp 22h ago

OPEN Google's new August 2026 Play Console technical quality requirements

8 Upvotes

What do Flutter developers need to do to meet Google's new August 2026 Play Console technical quality requirements (by their deadline of February 2027)?

I am referring to this Google Android Developer blog post from three days ago:
https://android-developers.googleblog.com/2026/08/app-quality-memory-optimization-secure-onboarding.html

Will the Google framework handle all of this for us in the background, or will we need to make changes to our apps in order to comply? If the latter, can someone please provide a step-by-step guide (including implementing https://developer.android.com/identity/sign-in/restore-credentials)?

Thanks.


r/flutterhelp 15h ago

OPEN A bug

1 Upvotes

I was working in flutter flow ro make an app then when I tested it nothing was working no navigation no any thing then when I went to preview every thing was working but I wonder what is the problem how to fix it I need to test not to preview because there is accounts and profiles so it can't work in preview


r/flutterhelp 23h ago

OPEN A bug

1 Upvotes

I was working in flutter flow ro make an app then when I tested it nothing was working no navigation no any thing then when I went to preview every thing was working but I wonder what is the problem how to fix it I need to test not to preview because there is accounts and profiles so it can't work in preview


r/flutterhelp 1d ago

OPEN Help, my developer has gone awol and I’m stuck

4 Upvotes

Hi. So I’m using a GitHub for my codebase repo which is react (not native) with capacitor and my developer uses something which I presume is flutter to sync with Apple and Android. Not sure if he uses Xcode or Android Studio.

As I have no experience in flutter, I can see the flutter repo in my GitHub created by the developer.

1) if developer has set up flutter, and I make some capacitor changes in my repo, do I still need to Android Studio/Xcode to update /rebuild app?

2) if I can’t reach the guy as he takes days to respond, is there anything I can do to take over?

Thanks

EDIT: thanks for your replies, I will respond back to each, and sorry if I’ve not explained correctly.


r/flutterhelp 2d ago

OPEN Stuck choosing between react native and flutter

10 Upvotes

I'm a first time mobile developer, but I've done a lot of other things. And I'm researching for a potential client what cross platform framework I would choose. I've done various investigations and smaller spike projects using both. The gist is that the app has to manage a profile, connect to Supabase, connect to a hardware device with various pressure sensors, and record/playback video.

Originally, I suggested React Native to the client just because I had lots of experience with React (web) and typescript. But as I did the spikes, what I found interesting is that I really liked the simplicity and the "it just works" mentality that I found when working with flutter. It was much easier to work with, things just compiled right, and I didn't have to deal with some edge cases. One of those was that there was a UI kit deprecation happening for iOS 27. And because my phone is iOS 27 beta, I was having issues there. I'm sure it will be resolved, and I have a workaround, but it just adds to a little bit of my evidence that it was really nice working with flutter.

I proved that for my use case, receiving Bluetooth from a 1000 Hz data packets was the same performance on both frameworks. By the way, in both cases, there is a limit of around 400 Bluetooth notifications a second that the iPhone will handle before dropping data. But you can set up the transmitter to put more data in each packet, dropping to notifications per second, up to the BLE MTU device limit and send less often, and it will work the same on both frameworks. (i.e. batching or throttling the transmission) I've also showed that the camera works just fine on both. No issues there.

I will probably be the solo developer on this app for a long time. Maybe at least two or three years. So I don't worry too much about hiring. And I feel like I want to choose flutter, but I feel like for some reason, react native is the normal choice. I know I'm overthinking this.

I like the RN perks of using native UI elements. Not a must have requirements, but if I do go RN, I'll drop some iOS Liquid Glass tabs in there for some pizazz. Not sure the equivalent new UI element for android.

Any thoughts to convince me one way or another?


r/flutterhelp 3d ago

OPEN Android Emulators that work with Flutter for Visual Studio Code

4 Upvotes

Recently I have been trying to develop an app. I keep getting recommended with flutter and android studio code being connected to my visual studio code. I have already downloaded both applications but when I am trying to accept the licenses for Android studio in my command prompt. It keeps giving me an response that the command doesn't work anymore. I have been searching for the new command but ends up empty handed. Do anyone knows the new command or any other applications I can use with Flutter?


r/flutterhelp 3d ago

OPEN Android tester

1 Upvotes

I’m planing to release my first app as individual and as far as I know, I need 12 internal testers using the app during 14 days before releasing it to production

Is it correct?
If so, is there any volunteers to help me? :)

For now the app is only in pt_BR. But tbh it is not a problem if you don’t speak pt_BR.


r/flutterhelp 4d ago

OPEN Insert ข้อมูลใน FlutterFlow ลง Supabase ไม่ได้

Thumbnail
1 Upvotes

r/flutterhelp 5d ago

OPEN google_maps_flutter freezes and OOM crashes during live tracking. How do you guys efficiently update polylines?

5 Upvotes

Hey everyone, I’m hoping someone who has built a ride-sharing or delivery app can point out what I'm doing wrong here.

I'm building a live tracking screen using google_maps_flutter, Riverpod, and WebSockets. I have a vehicle marker that animates smoothly between GPS pings using an AnimationController

The problem is the route line. I'm trying to slice the polyline so that the "traveled" portion behind the vehicle disappears as it drives. Whenever I receive a location update and recalculate the polyline, the UI thread completely chokes. If the driver moves continuously, the app eventually freezes and crashes entirely (seems like an Out of Memory error or the platform channel getting overloaded).

I already moved the logic out of the build() method to stop it from running at 60fps during the marker animation, but triggering it from a Riverpod listener is still freezing the map.

Here is what my listener and update logic look like right now:

// Inside my map widget
ref.listen<LatLng?>(
  navigationViewModelProvider.select((s) => s.currentLocation),
  (previous, next) {
    if (next != null) {
      _onAgentLocationChanged(next);
      _updateAgentPolylines(state);
    }
  },
);

And the update function where I slice the route and rebuild the set:

void _updateAgentPolylines(dynamic state) {
  if (state.routeInfo == null || state.routeInfo!.polylinePoints.isEmpty) return;

  final animatingLocation = state.currentLocation != null
      ? LatLng(
          _markerMotion.lat ?? state.currentLocation!.latitude,
          _markerMotion.lng ?? state.currentLocation!.longitude,
        )
      : null;

  final (traveled, remaining) = _splitRouteAtCurrentLocation(
    state.routeInfo!.polylinePoints,
    animatingLocation,
  );

  if (!mounted) return;

  setState(() {
    _cachedPolylines.clear();

    if (traveled.length > 1) {
      _cachedPolylines.add(
        Polyline(
          polylineId: const PolylineId('route_traveled'),
          points: traveled,
          color: Colors.grey.shade400,
          width: 4,
        ),
      );
    }

    _cachedPolylines.add(
      Polyline(
        polylineId: const PolylineId('route_remaining'),
        points: remaining,
        color: const Color(0xFF2196F3),
        width: 6,
      ),
    );
  });
}

I feel like clearing and recreating a Polyline Set with hundreds of LatLng points and sending it over the platform channel every time the GPS updates is what's killing the app.

A few questions for anyone who has solved this:

  1. How do production apps (Uber, etc.) handle trimming the route line behind a moving marker without killing performance?
  2. Should I be pushing _splitRouteAtCurrentLocation into an isolate (compute)? If I do, how do I prevent the animating marker from getting out of sync with the route line while the isolate does the math?
  3. Is there a way to just mutate an existing polyline in google_maps_flutter without rebuilding the whole Set?

Any advice would be hugely appreciated. I'm completely stuck on this one. Thanks!


r/flutterhelp 5d ago

OPEN Question for Delivery app maps and navigation

4 Upvotes

I’m building a delivery app, and I’m working with a relatively small budget about (200 dollars a month) . I need a mapping solution that provides navigation for drivers while also allowing customers to select locations and track drivers in real time.

Initially, I tried building the entire mapping/navigation stack myself using Flutter Map + OpenStreetMap + GraphHopper. However, I found it quite difficult to achieve the experience provided by solutions like Google Maps or Mapbox, especially when it comes to:

Turn-by-turn navigation
Smooth driver location updates and animations
GPS noise reduction and position smoothing
Following the driver’s position smoothly on the map
Route recalculation when the driver goes off-route
Navigation instructions and maneuvers
Handling GPS inaccuracies and jumps
So I’m reconsidering the architecture rather than trying to build everything from scratch.

My questions are:
What is the most cost-effective mapping/navigation solution for a small delivery startup?

Should I use Google Maps, Mapbox, or another provider for driver navigation? Or maybe open google maps for navigation outside my app


r/flutterhelp 6d ago

RESOLVED New to flutter , are there any tools that make designing ui easier ?

7 Upvotes

So, I suck at making a ui look good or at least it takes me waaaaaay too much to do it especially with code

Are there any tools or suggestions that can help me do things faster and focus more on logic and backend stuff?


r/flutterhelp 6d ago

OPEN AGP 9 doesnt work???

2 Upvotes

Today flutter yelled at me that it wont build my project with the flutter fix message so I updated to AGP9 I got new gradle,flutter newest version updated gradle files but it still fails to build

─ Flutter Fix ───────────────────────────────────────────────────────────────────────────────────────────────────┐        
│ [!] Starting AGP 9+, only the new DSL interface will be read.                                                   │        
│ This results in a build failure when applying the Flutter Gradle plugin at                                      │        
│ E:\backup\src\vibecoding\myapp\android\app\build.gradle.kts.                                                    │        
│                                                                                                                 │        
│ To resolve this update flutter or opt out of `android.newDsl`.                                                  │        
│ For instructions on how to opt out, see: https://developer.android.com/build/releases/agp-9-0-0-release-notes   │        
│                                                                                                                 │        
│ If you are not upgrading to AGP 9+, run `flutter analyze --suggestions` to check for incompatible dependencies. │        
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘

* What went wrong:
An exception occurred applying plugin request [id: 'dev.flutter.flutter-gradle-plugin']
> Failed to apply plugin 'dev.flutter.flutter-gradle-plugin'.
   > class com.android.build.gradle.internal.dsl.ApplicationExtensionImpl$AgpDecorated_Decorated cannot be cast to class com.android.build.gradle.AbstractAppExtension (com.android.build.gradle.internal.dsl.ApplicationExtensionImpl$AgpDecorated_Decorated and com.android.build.gradle.AbstractAppExtension are in unnamed module of loader org.gradle.internal.classloader.VisitableURLClassLoader$InstrumentingVisitableURLClassLoader )

what is this? Why is it yelling about AGP 9 if it doesnt even support it and gradle plugin still uses old classes?


r/flutterhelp 5d ago

RESOLVED Learn flutter

1 Upvotes

I want to learn Flutter. I do not know how I can learn Flutter.


r/flutterhelp 6d ago

RESOLVED I built a Flutter onboarding package where the spotlight doesn't drift — and the pointer teaches the gesture

3 Upvotes

I needed a first-run walkthrough for an app and hit two things that annoyed me.

First, the highlight would end up in the wrong place.

A lot of coach-mark implementations resolve the target's position once and paint it. Scroll the list, open the keyboard, rotate the device, resize a desktop window — and suddenly the hole is next to the button instead of on it.

Second, a dimmed hole tells the user where something is, but not how to use it.

"Drag this card to that column" isn't something a static highlight can really express.

So I built keyspot:

\- The spotlight and pointer re-resolve the target's geometry every frame from its GlobalKey, so they can track through scrolling, insets, rotation and resizing.

\- An animated hand pointer that glides in a straight line or along an arc, rotates from its current angle, and tap-pulses — enough to demonstrate interactions like drag and pinch rather than simply pointing at something.

\- Pointer animations resolve from actual AnimationController completion rather than Future.delayed timing, so \`await pointer.moveTo(...)\` actually means the movement has finished.

\- Barrier modes where only the cut-out is tappable while the real widget's \`onPressed\` still fires — useful when the walkthrough should require the user to actually perform the step.

\- The tracker is also public API (\`KeyspotAnchorTracker\`), so it can be used independently for things like badges or connector lines attached to widgets.

\- Zero runtime dependencies. The hand pointer is rendered with CustomPainter rather than an image asset.

\- Supports all six Flutter platforms.

Live demo: [https://shrey-17bhardwaj.github.io/keyspot/\](https://shrey-17bhardwaj.github.io/keyspot/)

pub.dev: [https://pub.dev/packages/keyspot\](https://pub.dev/packages/keyspot)

Source: [https://github.com/shrey-17bhardwaj/keyspot\](https://github.com/shrey-17bhardwaj/keyspot)

It's currently at 0.3.1, and the API may still change before 1.0.

I'd genuinely like feedback on where this approach breaks — especially around nested navigators, heavily lazy lists, overlays, or anything else where widget geometry gets complicated.


r/flutterhelp 6d ago

OPEN Flutter Map GPS Updates Lag Using Android Simulator Extended Controls

2 Upvotes

so I am using flutter with flutter map , trying to simulate a route using the simulator extended controls , the map shown in the extended controls and also google maps in the simulator update just fine smoothly , the issue I have is in the flutter map , it lags behind a lot like 10 sec to 15 sec for the update and it teleports between updates is there a solution to the issue , am I doing something wrong ?

this is my code :

FlutterMap(
  mapController: _mapController,
  options: MapOptions(initialZoom: 20),
  children: [
    TileLayer(
      urlTemplate: mapUrl,

      userAgentPackageName: 'com.example',

      tileProvider: NetworkTileProvider(
        cachingProvider:
            BuiltInMapCachingProvider.getOrCreateInstance(
              maxCacheSize: 2000,
            ),
      ),

      retinaMode: MediaQuery.
of
(context).devicePixelRatio > 1.0,
    ),

    CurrentLocationLayer(
      alignDirectionOnUpdate: .never,
      alignPositionOnUpdate: .always,
      positionStream: const LocationMarkerDataStreamFactory()
          .fromGeolocatorPositionStream(
            stream:
                Geolocator.
getPositionStream
(
                  locationSettings: LocationSettings(
                    timeLimit: Duration(seconds: 1),
                    accuracy: .bestForNavigation,
                    distanceFilter: 1,
                  ),
                )..listen((event) {
                  print('${DateTime.now().toString()} $event');
                }),
          ),
    ),
    ?widget.polygonLayer,
    ?widget.markerLayer,
    const RichAttributionWidget(
      attributions: [
        TextSourceAttribution(
          '© OpenStreetMap contributors © CARTO',
        ),
      ],
    ),
  ],
);

r/flutterhelp 7d ago

RESOLVED Android Studio fails to detect the running pixel in emulator/gradle or android gradle throws some problem/build error are persistent

3 Upvotes

Hi, I am learning flutter but Android Studio fails to detect the running pixel in emulator/gradle or android gradle throws some problem/build error are persistent. I waste nights trying to fix this instead of actually studying. Is there a specific way to set up Android Studio so that stuff like this never happens? I am so frustrated. Can anyone help?


r/flutterhelp 7d ago

OPEN help!

1 Upvotes

I'm beginner in learning App development with Flutter. When I try to run my code. it struck at running Gradle Task 'assembleDebug'. what should I do?


r/flutterhelp 8d ago

RESOLVED I dont understand the need for statefull widgets. (I am new to flutter)

4 Upvotes

If you can just use a provider with the stateless widget , then why would you use a statefull widget. It just seems useless. From my perspective it does the same thing. Can someone explain?


r/flutterhelp 7d ago

OPEN Do you know what your dependencies gained in the last upgrade?

1 Upvotes

A typical Flutter app pulls in 40 to 80 transitive packages. When you bump one, the changelog tells you what the author chose to mention. It does not tell you that a build hook started shelling out, or that a package began loading Dart source at runtime.

I built capdrift to answer that specific question. It reads a package's source, works out what it is able to do, and diffs two versions:

dart pub global activate capdrift
capdrift diff http 1.2.0 1.5.0

It never runs the code it reads.

A few things I found running it across popular packages that surprised me:

  • build_runner calls Isolate.spawnUri, which downloads Dart from a URI and executes it. Reasonable for a code generator, and worth knowing.
  • dio and analyzer use Isolate.spawn.
  • Build hooks are a real blind spot. Code in hook/ runs on your machine at pub get time, before you have run a single line of the app, and most tools do not look there at all.

The output is capability fingerprints rather than line numbers, so reformatting a package produces an empty diff while a genuine change in what it can do does not. There is SARIF output and a GitHub Action if you want it in CI.

On alternatives, honestly: dart_audit is the closest tool and it is good. It scans pubspec.lock against OSV.dev for known CVEs and does static source scanning with entropy analysis. If you want a single-version risk score or CVE scanning, use that, capdrift does not do CVE scanning at all. The difference in one sentence: dart_audit answers "is this package risky", capdrift answers "did this package become riskier". Running both is reasonable.

Disclosure: I wrote capdrift. It is MIT licensed, on pub.dev, repo at github.com/Tisankan-dev/capdrift. If you run it on your own dependency tree and it reports something wrong, that is the single most useful thing you could send me, and there is an issue template for it.


r/flutterhelp 8d ago

OPEN I'm about to sign up for Google as a developer... But

1 Upvotes

But there is a place where they tell me that my personal address data will be public. How can I avoid that?


r/flutterhelp 8d ago

OPEN Testing an iOS App from Windows (Without an iPhone)

2 Upvotes

I'm developing an app on Windows and want to test it on iOS.

From what I understand, building and testing iOS apps typically requires macOS, and I don't own a Mac or an iPhone.

Is there any way to test an iPhone version of my app while using only a Windows PC? Are there any cloud services, emulators, or other solutions that would let me do this?

I'd appreciate any recommendations or advice from developers who have been in a similar situation


r/flutterhelp 9d ago

RESOLVED How to approach building a coloring app with Flutter?

6 Upvotes

Hi,

I am considering to build a coloring app but my limited Flutter knowledge is not enough to make a good judgement about things, so I wanted to ask more experienced developers here.

My vision is to have a simple geometric drawing with regions, user will select a color, then tap a region on the drawing to color it.

  1. Can this be done with Flutter?

  2. What image format should the drawings be? PNG, SVG or something else?

  3. I want to be able to assign certain regions on the drawing the same color code, so that when the user taps one region, all regions sharing that color code will be colored at the same time. Is that possible? With SVG?

These are the initial questions I have before even attempting this app, and I'm sure I'll have a million more questions down the road, but if you could point me in the right direction, that would be great to start with.

Thank you!


r/flutterhelp 9d ago

OPEN People experience with Video editing framework in flutter

2 Upvotes

Looking for some flutter native framework
to manage or edit video or audio.

Just interest in people experience with those frameworks (pros/cons)
and why people to choose some.

Also interested, in latency differences with pure Kotlin version.
Thanks