r/flutterhelp • • May 03 '20

Before you ask

108 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 What do I share to app reviewers for a social-login-only app?

2 Upvotes

My app only provides Sign in with Google/Apple. What do I need to provide to app reviewers for them to access my app? I've read you don't need to provide any credentials, if so there are two user roles in the app. Should I incorporate logging in with email/password(less)? I can create test accounts on Google/Apple but I'm worried about OTP or new device sign-in restrictions. Or is there some way I can go without adding email/password(less) login?


r/flutterhelp • • 20h ago

RESOLVED Can't upgrade flutter: "Rename-Item : The process cannot access the file because it is being used by another process"

2 Upvotes

I ran flutter clean, but then ran flutter upgrade before doing flutter pub get. This seems to have broken my flutter project. I now get this error when trying to run flutter pub get:

Checking Dart SDK version...

Downloading Dart SDK from Flutter engine ...

Expanding downloaded archive with PowerShell...

Rename-Item : The process cannot access the file because it is being used by another process.

At C:\flutter\bin\internal\update_dart_sdk.ps1:134 char:9

+ Rename-Item $dartSdkPath "$oldDartSdkPrefix$oldDartSdkSuffix" ...

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ CategoryInfo : WriteError: (C:\flutter\bin\cache\dart-sdk:String) [Rename-Item], IOException

+ FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.RenameItemCommand

I tried running both Repair IDE (and went through all the steps) and Invalidate Caches and Restart (with all the options checked), but it still didn't work.


r/flutterhelp • • 21h ago

RESOLVED How do I catch this specific Exception?

1 Upvotes

I have a flutter function that sometimes returns a timeout error when the web server is running. However, this error is revealing the API IP address and port to the end user, which I don't want to do. I want to programmatically say "if the error is a timeout error, show the user a generic error message".

The error:

Exception: ClientException with SocketException: Connection timed out (OS Error: Connection timed out, errno = 110), address = MyIPAddressThatIDontWantToShow, port = MyPortThatIDontWantToShow, uri = ...

When this exact error happens, I want to show my own error that says something like "Login request timed out" or something. How do I do this?


r/flutterhelp • • 23h ago

OPEN How to make SingleChildScrollView inside of a stack scrollable?

1 Upvotes
link showing what im talking about: https://files.catbox.moe/uwo3ax.png

class HomePage extends StatelessWidget {
  const HomePage({super.key});


  u/override
  Widget build(BuildContext context) {
    return DefaultTabController(
      length: 3,
      child: Scaffold(
        bottomNavigationBar: SafeArea(
          child: PreferredSize(
            preferredSize: const Size.fromHeight(40),
            child: ClipRRect(
              borderRadius: const BorderRadius.all(Radius.circular(10)),
              child: Container(
                height: 40,
                margin: const EdgeInsets.symmetric(horizontal: 20),
                decoration: BoxDecoration(
                  borderRadius: const BorderRadius.all(Radius.circular(10)),
                ),
                child: TabBar(
                  splashFactory: NoSplash.splashFactory,
                  indicatorSize: TabBarIndicatorSize.tab,
                  dividerColor: Colors.transparent,
                  overlayColor: WidgetStateProperty.all(Colors.transparent),
                  unselectedLabelColor: Theme.of(context).colorScheme.outline,
                  indicator: BoxDecoration(
                    borderRadius: const BorderRadius.all(Radius.circular(10)),
                  ),
                  enableFeedback: true,
                  tabs: const [
                    Tabr(title: 'profile', count: 0),
                    Tabr(title: 'swipe', count: 0),
                    Tabr(title: 'likes', count: 0),
                  ],
                ),
              ),
            ),
          ),
        ),
        body: SafeArea(
          child: TabBarView(
            physics: NeverScrollableScrollPhysics(),
            children: [
              Text("data"),
              Stack(
                  children: [
                    Profile(),
                    Container(
                      height: MediaQuery.sizeOf(context).height,
                      decoration: BoxDecoration(
                        gradient: LinearGradient(
                          begin: Alignment.topCenter,
                          end: Alignment.bottomCenter,
                          colors: [
                            const Color.fromARGB(0, 255, 255, 255),
                            Theme.of(context).colorScheme.onSecondary,
                          ],
                          stops: [0.7, 1.0],
                        ),
                      ),
                    ),
                  ],
                ),
             Text("data")
            ],
          ),
        ),
      ),
    );
  }
}
class Profile extends StatelessWidget {
  const new({
    super.key,
  });


  u/override
  Widget build(BuildContext context) {
    return SingleChildScrollView(
      child: Column(
          children: [
            Container(
              decoration: BoxDecoration(
                color: Colors.transparent,
                borderRadius: BorderRadius.circular(30),
                image: DecorationImage(
                  image: NetworkImage(
                    'https://is1-ssl.mzstatic.com/image/thumb/PurpleSource221/v4/0c/49/cd/0c49cdf7-a4f8-3f89-defb-89684545719d/Screen_01_ASENUS.png/230x498bb.webp',
                  ),
                  fit: BoxFit.cover,
                ),
              ),
              height: 470,
              width: 400,
            ),
            Align(
              alignment: Alignment.centerLeft,
              child: Column(
                crossAxisAlignment: CrossAxisAlignment.start,
                children: [
                  Padding(
                    padding: const EdgeInsets.only(left: 16.0, top: 8.0),
                    child: Text(
                      'Jarvis, 24',
                      style: TextStyle(fontSize: 30, fontWeight: FontWeight(700)),
                    ),
                  ),
                  Padding(
                    padding: const EdgeInsets.only(left: 16, bottom: 8.0),
                    child: Text(
                      'Wisconsin, USA',
                      style: TextStyle(fontSize: 16),
                    ),
                  ),
                ],
              ),
            ),
            Align(
              alignment: Alignment.centerLeft,
              child: Padding(
                padding: const EdgeInsets.only(
                  left: 16.0,
                  bottom: 4.0,
                  right: 16.0,
                ),
                child: 
                     Flexible(
                        child: SingleChildScrollView(
                          child: Text(
                            '''This creates a clear, simple decision: Do I like this person or not? That’s it. There are no complicated menus or extra steps. Each interaction requires only a split-second judgment.


By presenting profiles as a stack of cards, Tinder also eliminates the sense of overwhelm that comes from browsing large lists. Users feel like they are simply flipping through possibilities, one by one.''',
                            style: TextStyle(
                              fontSize: 20,
                            ),
                          ),
                        ),
                      ),

              ),
            ),

        ],),

     );
  }
}


class Tabr extends StatelessWidget {
  const new({
    super.key,
    required this.title,
    required this.count,
  });


  final String title;
  final int count;


  u/override
  Widget build(BuildContext context) {
    return Tab(
      child: Row(
        mainAxisAlignment: MainAxisAlignment.center,
        children: [
          Text(title, overflow: TextOverflow.ellipsis, style: TextStyle(
            fontSize: 25, fontWeight: FontWeight(750))),
          count > 0 ? 
          Container(
            margin: const EdgeInsetsDirectional.only(start: 0, top: 3),
            padding: const EdgeInsets.all(3),
            decoration: BoxDecoration(
              color: const Color.fromARGB(0, 255, 0, 0),
              shape: BoxShape.circle,
            ), 
            child: Center(
              child: Text(
                "●",
                style: const TextStyle(
                  color: Color.fromARGB(255, 255, 1, 1),
                  fontSize: 10,
                )
              )
            )
            )
            : const SizedBox(width: 0, height: 0)

        ],

      ),
    );
  }
}

Trying to add a gradient starting from the bottom of the bottom navbar to hide overflowing text.

r/flutterhelp • • 1d ago

OPEN Mobile app

3 Upvotes

Hi I would like to make a similar app to garden galaxy game but on mobile, does anyone know if this is possible with flutter and xcode, thinking of using fscene.dev for the 3D sprites and movement for “plots”, sort of like clash of clan style. Anyone have any advice?


r/flutterhelp • • 1d ago

OPEN why aren't we allowed to post pictures when our problems are better explained with pictures? anyways i want my tabbarview to take up the entire screen and go behind the bottom navigation bar, is that possible?

2 Upvotes

it cuts off right on top of the navbar https://imgur.com/a/hzsMg3V


r/flutterhelp • • 1d ago

OPEN Best source to learn Flutter

Thumbnail
1 Upvotes

Same as title


r/flutterhelp • • 3d ago

OPEN Book recommendations for an aspiring Flutter developer

9 Upvotes

Hey everyone

I'm approaching one year of learning Flutter and Dart. I've built a few projects and now want to strengthen my software engineering fundamentals and become more industry-ready.

I'm looking for book recommendations that can help me become a better Flutter developer, particularly in areas like:

\- Clean Code and writing maintainable code.

\- Software architecture and design patterns.

\- Object-Oriented Programming and SOLID principles.

\- Data Structures and Algorithms.

\- System design and application scalability.

\- Best practices for professional app development.

I'm open to both beginner-friendly and advanced books.

Which books have genuinely helped you grow as a Flutter or software developer?

I'd appreciate your recommendations and insights. Thanks!


r/flutterhelp • • 3d ago

OPEN How do you handle one-time events (snackbars, navigation) with Riverpod/BLoC?

Thumbnail
1 Upvotes

r/flutterhelp • • 3d ago

OPEN i tried but i can't do it. flutter formatting is unbearable to look at. is there any formatter that makes flutter tolerable?

0 Upvotes

i cant spend hours looking at this garbage


r/flutterhelp • • 4d ago

OPEN Would you use a React Bits like component discovery platform for Flutter?

Thumbnail
2 Upvotes

r/flutterhelp • • 5d ago

RESOLVED How to adjust VSCode "intellisense"

3 Upvotes

Say you have this code:

@override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',

      darkTheme: ThemeData.dark(useMaterial3: false).copyWith(
        colorScheme: .fromSeed(seedColor: Colors.green),
        // <cursor is here>     
      ),

You type "bright" and a popup appears. That's ok, but it only contains the signature and not the documentation.

Q1: How can I make it show the full documentation, either showing the doc for Brightness, or how brightness is used in this function? Edit: I realize now that the latter is blank in the documentation, and it probably doesn't do "forwarding" like in C#.

From that popup, I selected "brightness" and pressed enter. The immediate suggestion popup is a super long list of irrelevant items.

Q2: Why is it showing useless stuff, and how can I make it show "Brightness.xxx" directly (the most likely values since it's an enum) like in C#?

More info:

  • It's the same silly behavior in IntelliJ IDEA, so I think it's the extension's problem.
  • I'm not looking to use AI inline autocomplete; want a deterministic one like in Visual Studio C#.

Thanks in advance.


r/flutterhelp • • 6d ago

OPEN Flutter deep linking in 2026 is still kinda mess

4 Upvotes

Anyone else spending way more time than expected wiring up deep links in Flutter? It's one of those things that looks straightforward until you're 3 hours into debugging why deferred links aren't firing on Android after a fresh install.

The attribution side makes it worse. If your deep link setup is slightly off, your install data is tangled up in no time and CAC reporting starts looking wrong in ways that are hard to trace back.

What setups are you shipping with and any patterns that held up across both Android and iOS?


r/flutterhelp • • 6d ago

OPEN Issue with Apple Sandbox environment

1 Upvotes

Hi
I am trying to manage my sandbox apple account inside developer option in settings. But it always shows the same error 'Cannot Connect - Retry' when i tap 'manage'. I tested in multiple iPhones.
What to do? Please help.


r/flutterhelp • • 7d ago

OPEN Flutter 3.50 Linux app shows black screen on Sway/Wayland, but works on Ubuntu desktop

10 Upvotes

Hi everyone,

I'm experiencing a rendering issue after upgrading my Flutter Linux application to Flutter 3.50.

The application works perfectly on my Ubuntu development laptop, but on our production device (CoreBox), which runs Sway with native Wayland, the application starts successfully but displays a black/blue screen.

The interesting part is that the application itself seems to be running normally. All services initialize, gRPC connections work, assets are loaded, and the application processes data without any obvious errors.

Environment:

  • OS: Ubuntu 26.04.1 LTS
  • Kernel: 7.0.0-42-generic
  • Flutter: 3.50
  • GPU: Intel Tiger Lake (PCI ID 8086:9a78)
  • GPU driver: i915
  • Compositor: Sway
  • Sway renderer: WLR_RENDERER=gles2
  • Wayland socket: wayland-1
  • GTK-based Flutter Linux application

What I've confirmed:

  1. The application process runs normally.
  2. Sway recognizes the window as a native Wayland xdg_shell surface.
  3. The application is not running through XWayland.
  4. The Intel GPU driver initializes successfully.
  5. The application loads its assets and initializes its services.
  6. There are no obvious fatal GPU errors in dmesg.
  7. WLR_SCENE_DISABLE_DIRECT_SCANOUT=1 is already enabled.

Sway reports:

floating_con "gameselector_main"
(xdg_shell, app_id: "gameselector_main")

Environment variables:

WAYLAND_DISPLAY=wayland-1
DISPLAY=:0
XDG_RUNTIME_DIR=/run/user/1000
WLR_RENDERER=gles2

What I'm investigating:

I suspect this might be related to the Linux rendering changes introduced in Flutter 3.50, possibly involving FlViewRendererSubsurface, EGL/OpenGL, or Wayland buffer presentation.

I'm currently adding additional native GTK and Flutter frame diagnostics, along with a minimal rendering test to isolate the issue.

I'm also considering testing Flutter 3.51.0-0.1.pre (beta) to see whether the issue has been fixed.

My questions:

  • Has anyone experienced black screens with Flutter 3.50 on Sway or other wlroots-based Wayland compositors?
  • Are there known regressions involving FlViewRendererSubsurface or EGL rendering?
  • Is there a supported way to switch between the old and new Flutter Linux rendering paths for debugging?
  • Has anyone tested Flutter 3.51 beta with similar issues?

I'd prefer to keep native Wayland support rather than switching to XWayland.

Any suggestions for debugging this would be greatly appreciated. Thanks!


r/flutterhelp • • 9d ago

RESOLVED Can anyone get this package working for iOS or will I have to go native to build an app that uses ScreenTime to block apps?

2 Upvotes

https://pub.dev/packages/app_limiter

Gives me the error when I try running it on iOS:

authorizationFailed iOS Screen Time request failed (restricted device, ...)

Works just fine on Android. I'm using their provided example.


r/flutterhelp • • 10d ago

RESOLVED Clarifying Google Play Console Internal vs. Closed Testing (14-Day Requirement) & Tester Opt-In Issues

1 Upvotes

Hi everyone

I am preparing my first Flutter app for release on Google Play Console and ran into a few questions regarding the testing tracks and the mandatory 12-tester / 14-day testing period:

- Internal Testing vs. Closed Testing URLs: Following the initial dashboard steps, I published a release to the Internal Testing track and shared the link with my testers. After completing the Store Listing steps, I also set up a Closed Testing release and noticed it uses a different opt-in URL. Since the final production checklist states that the testing period must be completed in Closed Testing, does time spent in Internal Testing count toward the requirement, or do I need to migrate my testers to the Closed Testing link?

- Internal App Sharing: I enabled Internal App Sharing in the settings. How does this differ from the Internal Testing track, and does it affect the release process?

- Play Store Errors for New Testers: When I add new users to my tester email list and share the link, some of them encounter an error or see a completely blank page when redirected to the Google Play Store, despite using the correct Google account. Occasionally it works if they retry a minute later, while for others the issue persists. Is this a propagation/caching issue, or is there a specific step I might be missing?

Thanks in advance for your help!


r/flutterhelp • • 11d ago

RESOLVED riverpod 2.5 provider not updating when state changes inside isolate

1 Upvotes

using riverpod 2.5.1 with flutter 3.22. i have a StateNotifierProvider that holds a list of items. when i recieve a message on a background isolate i call ref.read(provider.notifier).addItem(newItem) but the UI does not rebuild. the provider state updates (i logged it) but the consumer widget stays stale. tried wrapping the call in a Future.microtask and also tried ref.refresh(provider) after the add. neither worked. the isolate is spawned with Isolate.spawn and i pass the root isolate's sendPort to send messages back. i suspect the provider container is not the same instance inside the isolate callback. how do i properly trigger a rebuild from a background isolate


r/flutterhelp • • 11d ago

OPEN How to properly implement an error page in Flutter?

4 Upvotes

I'm aware that ErrorWidget.builder exists, but the downside about this builder is that it only replaces the widget that failed to render not necessarily the entire screen. Is there a way to replace the entire content of the screen with an alternative widget? Or maybe navigate to some sort of error route? How do you guys usually tackle this?


r/flutterhelp • • 12d ago

OPEN Can a Flutter app using NotificationListenerService reliably play custom notification sounds for incoming notifications on modern Android?

1 Upvotes

Can a Flutter app using NotificationListenerService reliably play custom notification sounds for incoming notifications on modern Android?


r/flutterhelp • • 13d ago

RESOLVED How to Keep a Flutter App Running in the Background on Android?

5 Upvotes

Okay, so I was building an app that required me to run the app in the background. I'm using Flutter, but on Android, whenever the app goes into the background, it just gets killed.

I want to know how I can make sure the app continues running in the background.


r/flutterhelp • • 13d ago

RESOLVED Building App for a start up

0 Upvotes

App for start up......

Iam a team lead just been recruited for new startup(fresher ). I am developing the App using flutter. App should be designed for user scale of 2L users(should be able to handle more no of users.....even though it starts with few nos). What is the process of developing an App. My preferred backend is node.js with Nestjs or Nestjs + Typescript.

What is the process of setting up App( like cloud, Apis, etc).

What are the prefered Ai models, ide for vibe coding.

Any suggestions regarding the process is truly appreciated guys....plz help me out...


r/flutterhelp • • 13d ago

RESOLVED Good Workflow for design update for Flutter?

Thumbnail
1 Upvotes

r/flutterhelp • • 13d ago

OPEN Can a Flutter app using NotificationListenerService reliably play custom notification sounds for incoming notifications on modern Android?

1 Upvotes

Can a Flutter app using NotificationListenerService reliably play custom notification sounds for incoming notifications on modern Android?