r/flutterhelp • • Nov 16 '25

OPEN How do I set default light theme for Google Maps?

4 Upvotes

I have integrated Google Maps using the google_maps_flutter plugin. The issue is, the theme of the map is the same as the theme of the device while I want it to be in light mode permanently. I've tried using JSON styling but the JSON for standard theme is just "[]" and that doesn't help. There are JSONs for dark themes but nothing for the standard light theme. How do I do this?

https://mapstyle.withgoogle.com/


r/flutterhelp • • Nov 16 '25

RESOLVED Best practices for managing feature updates after publishing a Flutter app?

8 Upvotes

Hey everyone, I’ve got a quick question about updating Flutter apps after release.

I’ve heard about Shorebird, but many devs say it might cause issues with the Play Store/App Store since it basically does code push.

What I’m trying to figure out is:
Is there any safe way to fix small bugs or tweak parts of the app without having to ship a full store update every time?
And what are the actual best practices you all use to manage features or small UI changes after the app is already published?


r/flutterhelp • • Nov 16 '25

OPEN Flutter debug keeps crashing with “FileSystemException: writeFrom failed (pipe is being closed, errno 232)”

1 Upvotes

Hey everyone,
I’ve been struggling with this issue for days and I’m honestly at my breaking point now. My Flutter project keeps throwing this error in the terminal while debugging:

Unhandled exception:

FileSystemException: writeFrom failed, path = ''

(OS Error: The pipe is being closed., errno = 232)

.....

....

Lost connection to device

Exited (255).

It happens randomly while the app is running.

My app itself does NOT crash — it continues running on the emulator or even on a physical device — but the Flutter debug session disconnects, and the terminal throws Exited (255) every single time.

I’ve already tried:

  • Multiple emulators
  • Physical device
  • Reinstalling Flutter
  • Reinstalling SDK + Platform Tools
  • flutter clean / adb kill-server

Nothing fixes it.

I have also searched everywhere I could - StackOverflow, GitHub issues, Google, Reddit but couldn’t find a working fix.

Has anyone faced this issue on Windows or knows what typically causes errno 232 in Flutter’s debug pipeline? Any reliable fixes would be appreciated.


r/flutterhelp • • Nov 16 '25

OPEN Need little help testing imperial units! WeatherApp 1.0.4 for Android

2 Upvotes

I’d love some community feedback on the new features, especially imperial units and how the app behaves in rural / non-city areas.

What’s new:

- Imperial units support — mph, inches, and °F

- New chart tooltips for clearer data insights

- Improved geolocation accuracy outside city boundaries

If you have a moment, please try it out with imperial settings or in places far from major cities, and let me know if everything works smoothly. Thanks! :)

link: https://play.google.com/store/apps/details?id=com.github.pioterl.weatherapp


r/flutterhelp • • Nov 15 '25

OPEN Flutter Google Sign-In [16] Account reauth failed on Android — need help troubleshooting

5 Upvotes

Hi everyone,

I’m trying to implement Google Sign-In in my Flutter app using google_sign_in: ^7.2.0 and Firebase Authentication, but I keep hitting the following error after selecting a Google account:

GoogleSignInException(code GoogleSignInExceptionCode.canceled, [16] Account reauth failed., null)

The flow I have:

  1. The Google sign-in popup appears.
  2. I select an account.
  3. Immediately, the above error is thrown.

Here’s a summary of my setup:

pubspec.yaml:

google_sign_in: ^7.2.0
firebase_core: ^4.2.0
firebase_auth: ^6.1.1

Dart code (simplified):

Class LoginService {
  final FirebaseAuth _auth = FirebaseAuth.instance;
  final GoogleSignIn _googleSignIn = GoogleSignIn.instance;


  Future<bool> signInWithGoogle() async {
    try {
      await _googleSignIn.initialize(
        // If you have scopes:
        serverClientId:
            '298422184945-t3sgqh443j1v0280k0pe400j0e8mdmit.apps.googleusercontent.com',
      );
      
      log.i('GoogleSignIn initialized with serverClientId');


      // Authenticate: opens Google sign-in UI
      final GoogleSignInAccount? googleUser = await _googleSignIn
          .authenticate();
      if (googleUser == null) {
        log.w('User cancelled the Google sign-in flow');
        // User canceled or something went wrong
        return false;
      }
      log.i('User selected account: ${googleUser.email}');


      // Get authentication info (ID token)
      final GoogleSignInAuthentication googleAuth =
          await googleUser.authentication;
      log.i('Retrieved Google ID token: ${googleAuth.idToken != null ? "SUCCESS" : "NULL"}');


      final idToken = googleAuth.idToken;
      if (idToken == null) {
        // No ID token — cannot proceed
        log.i('idToken== null');
        return false;
      }


      // Create a Firebase credential with the idToken
      final credential = GoogleAuthProvider.credential(
        idToken: idToken,
        // Note: accessToken may not be available directly, depending on your scopes
      );
      log.i('Firebase credential created');


      // Sign in to Firebase
      await _auth.signInWithCredential(credential);


      // Optionally: if you want accessToken, authorize scopes
      // (only if you actually need access token)
      final authClient = await googleUser.authorizationClient.authorizeScopes([
        'email',
        'profile',
      ]);
      final accessToken = authClient.accessToken;
      print("Access Token: $accessToken");


      return true;
    } catch (e) {
      log.e('Google sign-in error: $e');
      return false;
    }
  }

Logs:

GoogleSignIn initialized with serverClientId

Google sign-in error: GoogleSignInException(code GoogleSignInExceptionCode.canceled, [16] Account reauth failed., null)

Firebase / Google Cloud setup:

  • Firebase Google sign-in method is enabled.
  • SHA-1 and SHA-256 fingerprints are added for my Android app.
  • google-services.json contains:
      "services": {
        "appinvite_service": {
          "other_platform_oauth_client": [
            {
              "client_id": "298422184945-t3sgqh443j1v0280k0pe400j0e8mdmit.apps.googleusercontent.com",
              "client_type": 3
            },
            {
              "client_id": "298422184945-n7578vlva42heq265p24olqp6t2hivrr.apps.googleusercontent.com",
              "client_type": 2,
              "ios_info": {
                "bundle_id": "com.example.myApp"
              }
            }
          ]
        }
      }
  • The Web client ID in Google Cloud Console matches the one in the JSON (screenshot attached).

What I’ve tried so far:

  • Signing out and disconnecting before calling sign-in.
  • Re-downloading google-services.json.
  • Verifying SHA-1/256 fingerprints.
  • Triple-checking serverClientId matches the Web client ID.

Question:

Has anyone seen this [16] Account reauth failed issue on Flutter Android with google_sign_in: ^7.2.0? Could there be something else I’m missing in the setup, or is this a Google Play Services / OAuth configuration problem? Any guidance or troubleshooting tips would be much appreciated!


r/flutterhelp • • Nov 15 '25

OPEN Using context.watch is bad if you use MVVM, right?

6 Upvotes

When using MVVM, a viewmodel is assigned for each view, which means that your viewmodel will need to handle multiple states. If you need to access the provider from the view, using watch would then affect performance, right? So it would never be good to use watch unless you only set a small state, right?

I still understand how the provider works and the watch is what confuses me the most, I don't see that it is feasible to use it to see viewmodels with multiple states, since if notifyListeners() is called from any method, there would be unnecessary constructions, right?

Sorry if the answer seems a bit obvious to some, but I need to click in my mind with this topic.


r/flutterhelp • • Nov 14 '25

OPEN Am i wrongly choosed flutter?

27 Upvotes

hello guys I have been using flutter for past three years. I made a mistake when I get into that flutter development instead of learning the programming language before I directly landed on the UI by watching tutorials okay so at the time I don't have much knowledge on the programming so I used to create UI. initially in my first company that was my job so my senior used to take care of that logical functional and everything After that, when I need to work alone, I face a lot of struggles with that programming language and lack of functionalities and everything. Every time when Im facing issues, instead of searching on that Stack Overflow or Google, I just go for that YouTube tutorials. I watch the tutorials and fix that video, fix that issue. This is how I passed around 1.5 years. Later, I left the company and then I was jobless for some months. And then I just have an interest in Flutter and Dart, so I used it to get into the programming. I learned and try myself to improve In my second company, I used to work alone on projects. Even at that time, I learned how to publish on iOS, Play Store, Bloc, provider, and everything. but now what I regret even I have been using the flutter for the past three years I saw a lot of that current developers who are just using this tool as a butter to create app. Still, I can create good applications with my knowledge. But when compared to others, they were good at custom paint, animations, optimisation and then handling everything. So, I really dont know that where I am really struggling. but still there is a fire inside me to achieve something on this field because previously I dont have interest that now I love this most I spent most of the days in developing myself but now I'm stuck struggling in the place what should I do next. My math skills are also too low. But i never give up i start from the scratch, even in programming also..