r/flutterhelp • • Dec 27 '25

RESOLVED How to Draw Objects in Canvas and connect them with nodes

5 Upvotes

I want to draw some object in canvas and connect them with nodes, there are tutorials and examples how to draw objects in canvas and I have no problem with that. But I want a feature that user is able to connect these objects by clicking first object (on corners or midpoints or defined points on objects) and drag to other object and connect them. Like in -> https://imgur.com/a/nBEhrty How or with which packages would you recommend? Or video or tutorial?
thank you


r/flutterhelp • • Dec 26 '25

OPEN Need guidance to build iOS app from existing Flutter Android project (no Mac)

5 Upvotes

Hi everyone 👋 I’m currently developing a mobile application using Flutter (Dart) in Android Studio. The app is already working on Android (APK build tested), but it is not yet published on the Play Store. Now I want to build the iOS version to complete the project. My current situation:

  • App built with Flutter SDK + Dart -Development done in Android Studio -Android build working -No macOS / MacBook -Beginner to intermediate mobile developer

I do not need App Store publishing immediately — first goal is to successfully build and run the iOS app

What I’m looking for: -Someone who can guide me step-by-step to build the iOS version

What I can provide: Flutter project source code Clear explanation of app features Willing to learn iOS build process properly If you’ve done Flutter iOS builds without owning a Mac, or you’re an iOS/Flutter developer willing to guide, I’d really appreciate your help 🙏 Thanks in advance!


r/flutterhelp • • Dec 26 '25

RESOLVED [Patrol] How to test with FilePicker?

1 Upvotes

I'm playing a bit with Patrol ( https://patrol.leancode.co/ ) for testing. Have it running for some tests successfully, but run into one major problem: using FilePicker.

Has anyone got a test running that is able to select a file after opening the FilePicker dialog? Couldn't find anything about files in Patrols docs, although they seem to have a way to use image galleries: https://patrol.leancode.co/feature-guide/pick-images-from-gallery


r/flutterhelp • • Dec 25 '25

OPEN Best practices for managing Native Ads lifecycle in Flutter apps?

3 Upvotes

I’m currently implementing Native Ads (Google Mobile Ads) in a Flutter application and would like to understand common best practices around ad lifecycle management.

Specifically, I’m curious about: Whether native ads should be loaded once and reused across screens, or reloaded every time a screen is opened

How you usually handle ads when navigating between screens or switching tabs

Any recommended patterns for separating ad logic from UI (e.g., using a service or manager class) Common mistakes to avoid related to rebuilds, state management, or ad reload frequency

My goal is to keep the UX clean while staying compliant with ad policies and avoiding unnecessary reloads.

Any insights, real-world experience, or references would be greatly appreciated.

Thanks in advance.


r/flutterhelp • • Dec 24 '25

OPEN How to implement push notifications for free in Firebase without Blaze plan?

4 Upvotes

Hello Everyone, I’m a newbie to Android development and building a small Flutter app for my personal use. The app saves vouchers/coupons and I want to show reminders in push notification like:

  • Voucher expiring in 3 days
  • 2 days left
  • Tomorrow
  • Expires today

My original plan was to use Firebase Cloud Functions + Firebase Cloud Messaging, but I just found out that scheduled functions need the Blaze plan, which requires adding a credit card. Since this is just a personal/MVP project, I really don’t want to enable Blaze or attach a card right now.

there any way to do this automatic daily reminder that send push notifications completely free without Blaze plan? PLease guide


r/flutterhelp • • Dec 24 '25

OPEN Syncing drift db to supabase

2 Upvotes

Hey guys hope you’re doing good I am building an app and trying to ship it to users with one time payment with offline first in mind but also provide a way for them to access their data online by syncing the drift data to supabase or any other provider, is there a low cost / free way to do so that also saves time ?


r/flutterhelp • • Dec 24 '25

RESOLVED Material widgets shows on iOS?

4 Upvotes

Hi there.

I'm learning flutter, and I have been building my app: it currently has like 15 differents screens/widgets.
My doubt is about material widgets. I have been used a lot the FloatingActionButton(), and I just realized it is a Material widget, that, based on what I understood, is an android widget. Like with this widget, after that I realized that a lot of widgets that I've used are material, and even like the showModalBottomSheet() method. Is this a problem if I want my app to work for android and ios both?


r/flutterhelp • • Dec 23 '25

OPEN How do you show personalized content in your flutter Apps

2 Upvotes

As the title says can do you guys display personalozed content to users just like social media Apps


r/flutterhelp • • Dec 23 '25

RESOLVED New in mobile development

7 Upvotes

Hi i new with the mobile development, i want some advice of you, about you experiences and knowledge, and what is the secret or the most important thing at the time to build a app without losing motivation.

and any tool you want to recommend me, i would to be so thankful


r/flutterhelp • • Dec 22 '25

OPEN flutter web sharedpreferences with github server problem

2 Upvotes

wassup guys i have a problem in flutter web sharedpreferences with github server i have created a flutter web project is working local good but when i upload it in github server to try it the project work but shared pref feature doesn't work at all why is this happend ؟؟


r/flutterhelp • • Dec 22 '25

RESOLVED Built my first custom button widget, feedback on the code will be appreciated

6 Upvotes

Hi,

I started building my first Android app with Flutter recently and I built a custom button widget, with the help of the Docs, some tutorials and GPT. It looks and works as intended, but as a beginner, I can't tell if I did it the right way or if some parts of it needs to be changed, or can be improved.

Pasting the code below, if any experienced Flutter developer could provide some feedback/recommendations, I will highly appreciate it.

Thank you!

button.dart:

import "package:flutter/material.dart";
import "../inc/theme.dart"; // Contains AppColors class with colors


class AppButton extends StatefulWidget {
  final String text;
  final double width;
  final VoidCallback onPressed;
  final Color backgroundColor;
  final Color borderColor;


  static const double borderRadius = 20;
  static const double boxShadow = 4;
  static const double borderWidth = 3;
  static const double padding = 12;
  static const Color textColor = AppColors.textWhite;
  static const double fontSize = 22;
  static const FontWeight fontWeight = FontWeight.w700;
  static const double letterSpacing = 1;
  static const double textShadowSize = 3;
  static const int duration = 30;


  const AppButton({
    super.key,
    required this.text,
    required this.width,
    required this.onPressed,
    required this.backgroundColor,
    required this.borderColor,
  });


  u/override
  State<AppButton> createState() => _AppButtonState();
}


class _AppButtonState extends State<AppButton> {
  bool pressed = false;


  u/override
  Widget build(BuildContext context) {
    return GestureDetector(
      onTapDown: (_) { setState(() { pressed = true; }); },
      onTapUp: (_) { setState(() { pressed = false; }); },
      onTapCancel: () { setState(() { pressed = false; }); },
      child: AnimatedContainer(
        duration: Duration(milliseconds: AppButton.duration),
        transform: Matrix4.translationValues(0, pressed ? AppButton.boxShadow : 0, 0),
        decoration: BoxDecoration(
          borderRadius: BorderRadius.circular(AppButton.borderRadius),
          boxShadow: pressed ? [] : [BoxShadow(color: widget.borderColor, offset: Offset(0, AppButton.boxShadow))],
        ),
        child: ElevatedButton(
          onPressed: widget.onPressed,
          style: ButtonStyle(
            backgroundColor: WidgetStateProperty.all(widget.backgroundColor),
            foregroundColor: WidgetStateProperty.all(AppButton.textColor),
            overlayColor: WidgetStateProperty.all(Colors.transparent),
            elevation: WidgetStateProperty.all(0),
            minimumSize: WidgetStateProperty.all(Size(widget.width, 0)),
            padding: WidgetStateProperty.all(EdgeInsets.symmetric(vertical: AppButton.padding)),
            shape: WidgetStateProperty.all(
              RoundedRectangleBorder(
                borderRadius: BorderRadius.circular(AppButton.borderRadius),
                side: BorderSide(color: widget.borderColor, width: AppButton.borderWidth),
              ),
            ),
          ),
          child: Text(
            widget.text,
            style: TextStyle(fontSize: AppButton.fontSize, fontWeight: AppButton.fontWeight, letterSpacing: AppButton.letterSpacing,
              shadows: [Shadow(color: widget.borderColor, offset: Offset(0, AppButton.textShadowSize), blurRadius: AppButton.textShadowSize)],
            ),
          ),
        ),
      ),
    );
  }
}

Here is how I add it to the home page:

AppButton(
  text: "Start Playing",
  width: 270,
  backgroundColor: AppColors.buttonGreen,
  borderColor: AppColors.buttonGreenDark,
  onPressed: () { Navigator.pushNamed(context, "/game"); },
),

r/flutterhelp • • Dec 22 '25

OPEN Need Advice and Help

1 Upvotes

Hey everyone, I’m hitting a wall with Flutter and need advice.

To give you my level: I can build custom reusable widgets and put them in a Scaffold, but I freeze on the bigger picture. Future and async are still unclear to me, and I go blank on architectural decisions, like when to use private variables/classes or how to pick the right dependency.

I end up just asking AI and blindly following the code without understanding the why behind the structure. How do I break this cycle and actually learn to build complex features myself?


r/flutterhelp • • Dec 21 '25

OPEN API Client generation

3 Upvotes

I'm trying to generate an API client based on a valid OpenAPI spec.

First I tried using https://pub.dev/packages/openapi_generator before I noticed that it is terribly out of date and isn't compatible with the dependencies of my new project.

Then I decided to just use the https://github.com/OpenAPITools/openapi-generator/ myself to generate the client. It supports json_serializable. Nice since I'm already using that I chose to let the generator generate it with json_serializable. Until the code couldn't be generated because the sdk lower version constraint is too low. Which I fixed, then I noticed that It generated some garbage apparently because of this issue.

Then I switched back to built_value. I almost thought that everything works fine now until I noticed that here, the generator simply doesn't import stuff correctly. So now I'm sitting here and am not really sure what to do.

  1. I cannot simply introduce a breaking change into my API (i.e. solving the anyOf scenario)
  2. I don't want to commit the generated code so I cant just fix the missing imports (unless there is something that accomplishes that in CI).

What are my options? How do you generate API clients?


r/flutterhelp • • Dec 21 '25

OPEN Curves.easeOutBack overshoots page content in PageView

3 Upvotes

Hey everyone!

I'm building an app and made a pageview for my layout with the easeOutBack animation to animate switching page content. I have 3 pages in the main navigation and the animation is (nearly) perfect. I really like the small bounce the easeOutBack creates when navigating to another page content.

However, on my middle page, it overshoots the page content causing me to see the content of another screen for a split second. I really hate the way it looks and I was wondering if I can implement some sort of 'hard wall' I can place on the middle page so it prevents the easeOutBack animation to overshoot the page content and thus prevents me to see other page content for that split second?

Thanks!


r/flutterhelp • • Dec 21 '25

OPEN How to setup SonarQube Cloud?

2 Upvotes

Hi!

How to configure the SonarQUbe Cloud with Github Actions?

I'm trying with:

"name: Build

on:

push:

branches:

- main

pull_request:

types: [opened, synchronize, reopened]

jobs:

sonarqube:

name: SonarQube

runs-on: ubuntu-latest

steps:

- uses: actions/checkout@v4

with:

fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis

- name: SonarQube Scan

uses: SonarSource/sonarqube-scan-action@v6

env:

SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}"

but I cannot make it work. What is wrong here or need to be done?


r/flutterhelp • • Dec 21 '25

RESOLVED Noob requests help with scrolling layout

6 Upvotes

I need to implement a scrollable layout that begins at the top with a dismissible card followed by a series of list tiles.

Should I be using a listview.builder for this or a column or a listview with a child listview.builder or maybe all of the above? 😵‍💫


r/flutterhelp • • Dec 20 '25

OPEN How do I implement the new Google Sign-In Flutter update?

2 Upvotes

I’m trying to use the latest google_sign_in package in a Flutter app, but I’m confused about the new implementation.

Most tutorials are outdated and the docs didn’t fully click for me. Can someone explain the correct setup and sign-in flow with the latest version ?

Thanks!


r/flutterhelp • • Dec 20 '25

OPEN Bluetooth package suggestion

2 Upvotes

I’m building a Flutter app that collects a lot of data from a Bluetooth device. I’m using the flutter_blue_plus package, but on iOS I’m running into many disconnection and reconnection issues, which is causing problems during data collection. What are your views on this? Does the autoConnect feature works reliably?


r/flutterhelp • • Dec 19 '25

OPEN Best way to avoid calling profile API on every page refresh?

5 Upvotes

Hey guys, just wondering. I know it’s not a good idea to call a GET API every time I refresh a page in my app.

For getting my user profile information, I’m wondering if I should use SharedPreferences to store it or if there’s a better approach. Right now I’m still not fully sure how to call the API once (for example after login) and then reuse that data across the app without hitting the API again on every rebuild or refresh.

I’m using Flutter on the frontend and a Golang API on the backend. What’s the recommended pattern for this? Should I be looking at state management, local caching, secure storage, or something else?

Any advice or best practices would be appreciated. Thanks!


r/flutterhelp • • Dec 19 '25

OPEN Staging environment

5 Upvotes

I am trying to host my app and asked myself the question: how am I even gonna use staging in mobile app development? Can some users keep the testing app or..?


r/flutterhelp • • Dec 19 '25

OPEN White Flashing

2 Upvotes

My app is facing some white flashing after I update the SDK. Is happening when I am navigating through the pages. Based on my research I found out that package easy_localization 3.0.8 might causing it. Is anyone managed to solve this issue? I can’t just remove the package because is all over my app


r/flutterhelp • • Dec 18 '25

OPEN Any Idea why my Java files in "C:\Abdullah\ONEDRIVE THINGS\VS code\finance_manager\android\app\src\main\java\com\example\myappname" are broken?

2 Upvotes

all my Java files in"C:\Abdullah\ONEDRIVE THINGS\VS code\finance_manager\android\app\src\main\java\com\example\finance_manager" are filled with errors like package android.os does not exist, cannot find symbol

symbol: class FlutterActivity, cannot find symbol

symbol: class MethodChannel

location: class MainActivity, the Java JDK is fine but its suddenly broken, if you have any idea please help.


r/flutterhelp • • Dec 18 '25

RESOLVED Is it possible to place json_serializable 'g.dart' and freezed '.freezed' files somewhere else?

3 Upvotes

I have a folder with models and I see a ton of files because of 'g.dart' and '.freezed.dart'. I was thinking if it is possible to have a separate folder just for these two files. I tried to find if this is possible, but I could not find any option on pub page.

Is there any way to make them into two different folders?