/r/FlutterDev

Photograph via //r/FlutterDev

A community for the publishing of news and discussion about Flutter.

/r/FlutterDev

147,318 Subscribers

1

Which freemeium and auth approach is best?

Hey so I am new to flutter and looking into how I can monetize and sync data between devices.

My idea is to allow the user to use my app but restrict what they can do until they have a subscription. I will use revenueCat for the subscription handling.

I also want the app to sync across devices so my question is, how can I do this the best way? I will use firebase for data.

As I see it I have several options.

The user HAS to sign in or register to use the app to begin with. This approach is not recommended as I understand it, since most users would like to try before registering.

The user can try without registering and can then register later if he wants the data to sync. He can also subscribe later if he wants all the features. This approach would require me to somehow store data locally and then transfer to firebase if they log in.

Maybe there exists a better approach? I hope some of you can give some ideas and input.

1 Comment
2025/02/01
20:33 UTC

1

VSCode customizations for Flutter developers

An article about VSCode customizations from the perspective of a Flutter developer:
- launch.json
- settings.json
- symlinks

https://medium.com/@pomis172/vscode-customizations-for-flutter-developers-055281264481

What customizations do you use?

0 Comments
2025/02/01
19:09 UTC

4

affordable video storage solution?

So, I am making a LMS platform and looking for storage provider to upload and play video in my Flutter app. I am building the app with Supabase and their storage is quite nice and DX friendly but i am worried about bandwidth as i have to store 5-6 TB of video content and and serve to 3-4k students every day (they may each consume 2-3 GB daily also it can peak in exam season).
So, i am hoping for your advice to which provider is affordable and easy to use as i need to use that provider also in my nextjs website too.

4 Comments
2025/02/01
18:09 UTC

0

New to Developing, but is it possible to get my mobile app to work with multiple databases?

Im trying to work on a concept that could possibly generate alot of traffic (possibly ≥ 20k Concurrent/MAU) and i would like to play with the idea of a multi-database structured platform.

But im not sure how to approach as i cant find anythnng useful on YouTube.

I want to seperate my users and their profile/settings information from say an e-commerce database, a social media database, and maybe even a jobmarket.

I just feel like having it all in one isnt smart.

Any suggestions or ideas?

22 Comments
2025/02/01
16:59 UTC

0

How do you get rid of if/else or switch statements in your bloc builder ??

2 Comments
2025/02/01
11:47 UTC

36

A lightweight and feature-rich tool for a functional guide

Link first:::::

pub.dev github

Feature Introduction

  • Supports custom description widget for GUIDANCE AREA
  • Supports locking the tip position with Widget#key or Rect
  • Supports setting the background mask opacity
  • Supports setting the duration of animation transitions
  • Supports preset options for the position of the description widget
  • Supports setting the padding of the guidance area
  • Supports setting the border radius of the guidance area
  • Supports setting the interval between description and guidance area

If you found it helpful, please consider giving it a star! 😊

3 Comments
2025/02/01
09:26 UTC

4

Confusion on choosing techstack for booking app

Hi All, I'm basically backend developer (.Net and SQL Server).

I'm new to developing mobile applications. For very long time I was thinking to create an app to book slots which will be useful for local shops.

I have planned to develop app with flutter and supabase.

As I said, I'm new to flutter and front end side. Whether I will have any security issues connecting flutter directly to supabase?

Regarding handling of complex logics, I hope dart can handle it well. When do I need separate backend for my app?

I went through multiple articles but didn't got a clear idea on this topic. Please guide me with any articles or with your useful inputs. Thanks in advance.

10 Comments
2025/02/01
06:08 UTC

23

Testing OpenAI's new O3-mini-high model

Recently I tested Deepthink R1, ChatGPT O1 and Claude 3.5 with the task to create a Flutter widget that is a BASIC interpreter. O1 won by presenting the least bad solution.

Now, there's O3-mini-high, a model optimized for code generation. I gave it a quick test.

O3 is the first model that separated logic and UI, which is a plus. A BasicTerminalWidget refers to a BasicInterpreter which takes a callback to print something on the terminal. Unfortunately, this printing ignores the current cursor position and only appends new lines to the end of the screen, so this is worse than all previous solutions. Also, after scrolling the screen one line up, it also moves the cursor up which doesn't make sense.

Like all models before, it still uses the deprecated RawKeyboardListener. But it is the only model that actually uses a GestureDetector to refocus the widget on click.

It uses a TerminalPainter to draw the screen, now using courier instead of monospace which is a better default. But it still cannot provide fallbacks. And like all models before, it fails to correctly measure font sizes to place a cursor rectangle at the right spot. At least, it didn't forget the cursor.

And it learned the habit from bad tutorials which blindly make shouldRepaint return true. Well.

The BasicInterpreter look promising, though. It seems to be quite complete. Unlike before, I also wanted to have 'new'. Perhaps this made it better?

I don't understand why all models insist on representing a program as a Map<int, String>. This model seems to do the right thing, though, sorting the lines before executing them and even maintains a stack for the for loops. And print supports both literal strings and expressions which is new. And because of the if, it even "thought" about that we need not only expressions but also conditions. And it correctly handles operator precedence and supports grouping.

Overall, -> impressive.

Also, today, Claude wasn't overloaded like last time and I gave it a second try. I think, Claude nailed the terminal screen management. It added the Basic interpreter code to the stateful widget, though. It supports expression and conditions, and maintains a stack for the loop. However, loops don't work because for next, there's a // TODO: Implement jumping back to FOR statement. For expressions, there's no operator precedence and no grouping. The ScreenPainter custom painter inherits the bad habit and it also fails to correctly place the cursor rectangle, but tries harder than O3 by using the available screen space, dividing it by 40 and 25 and then trying to size the font accordingly. This will never work correctly.

Trying to compete with reasoning models, -> Claude holds up.

1 Comment
2025/01/31
23:30 UTC

12

How to Balance Memorization and Understanding in Software Development?

I am a software engineering student, and I often find myself forgetting implementation details when coding, especially while working with Flutter. For example, when building an app, I use components like navigation bars, dropdown menus, and pageview but I struggle to remember the exact code or syntax for these elements the next time I need them. Is this normal? I also forget how to implement algorithms I know conceptually, such as BFS or DFS, when asked to write the code.

My question is: How much should I focus on memorizing these details versus understanding the concepts? Do experienced developers typically rely on documentation or do they remember the code from experience? I'm a bit confused about what I should prioritize in my learning process.

15 Comments
2025/01/31
19:49 UTC

1

Responsibilities and challenges as a Flutter Frontend Architect.

What are a front-end Flutter architect's typical responsibilities and expectations, how can someone best prepare for the role, and what challenges are commonly encountered along the way?

2 Comments
2025/01/31
18:30 UTC

0

Cancellation of macros and other shortcomings highlight the need for Flock

I'm not in anyway suggesting Flock, the infamous Flutter fork, will continue development on macros. The point I'm making, is this unexpected change of plans *should serve as evidence that no organization is infallible and the Flutter team CAN make mistakes. How much *permanently lost development time could have been spent on something ultimately more useful - such as the enhancement of Flutter web ? Was this preventable ? Who knows. But either way, let this be a lesson to us all: There is no need to mock or harass community members for devising solutions such as Flock or other tools which ultimately provide freedoms and assurances beyond the whims of corporate bureaucracy.

37 Comments
2025/01/31
18:00 UTC

0

The elephant in the room with Dart...

So we all feel comforted that there is a way to manage long running calls, because you have"async" functions.

But the reality is, the only way to call them is to do the usual

await myStupidLongThing()

Which is identical to not have async support in the first place!

So why do we bother in the first place? Why can we not get support for actual threads? Or channels that can be called, or listeners? Mainly because then you can't get a BuildContext, and you can't DO anything useful!

So what are people using for actual asynchronous code?

12 Comments
2025/01/31
16:30 UTC

1

How much is your minimum iOS version if you are creating a new application?

How much is your minimum iOS version if you are creating a new application?

9 Comments
2025/01/31
04:57 UTC

0

hey guys looking to add subscriptions to my app

I've look at the native packages, do you recommend other off the shelf solutions like revenu cat? are there others?

2 Comments
2025/01/31
04:42 UTC

44

My first app to Google Play was approved

I'm a newcomer to Flutter and mobile app development. First app was just approved for the Google Play Store, and it happened in just a couple of hours!

For a week or so, I had been uploading my app to the Internal Testing track on the Google Play Console. The app is totally MVP and does not feel complete yet. Very little effort in the UX. Just trying to get used to Play Console and the process.

On the Internal Testing track, I'm the only test user. Playing around with promoting my bundle, I promoted it to Production and submitted it for review. I completely skipped closed testing. Was fully expecting a long review period and a cycle of feedback and fix. However, less than 2 hours after my app was submitted for review, it was published on the Google Play Store. Subsequent versions of my bundle become available in under an hour.

Needless to say, I'm shocked! This seems counter to the norm (based on experiences I've been reading from other developers).

Edit: when registering for a developer account, I chose business. Not incorporated or anything, just using a trade name to keep my personal details out of the Play Store. Apparently the rules for app review are different when you choose business.

18 Comments
2025/01/31
03:10 UTC

22

Hey what happened the thing(flock) forked from flutter

Just asking...!

21 Comments
2025/01/31
01:50 UTC

3

Deeplinking

Hi, is there a platform or a open source project that i can look at to implement deeplinking in my app. I want the link to work from any apps on my phone including facebook/instagram etc.. most platforms like dynalink their links does not work from facebook. just takes me to the app store but apps like tik tok works perfectly from all platform. any advice please?

3 Comments
2025/01/30
20:21 UTC

2

Has anyone analyzed the dartpad code ? What is it using to excute strings as dart code?

It seemed a bit complicated for me but i m still curious how they excute string as dart at runtime, is this somewhat of an important feature that can allow dev to customize app behaviour with a fully fledged update.

2 Comments
2025/01/30
19:51 UTC

2

Image Manipulation in Flutter Front-end vs. Serverless Functions

Hello everyone, I'm working on a Flutter app where users upload two photos to be combined. I'm considering whether it's better to handle the image manipulation on the front-end using FlutterFlow or to use a serverless function on the backend. I'm also thinking about other image manipulation tasks like resizing. What are the pros and cons of each approach, and what would be the best practice for performance and cost-efficiency?

4 Comments
2025/01/30
18:46 UTC

5

Looking for a Dart Library for Code Generation Without source_gen (Since Macros Are on Hold)

Hey everyone,

I'm working on a Flutter project and want to build custom code generators, but I’m trying to avoid using source_gen.

Since Dart macros development is on hold, I’m wondering if there are any good alternatives for:

  • Generating code directly in the project
  • Not needing separate generator packages

If you've come across any tools or approaches that make this easier, I’d love to hear about them.

Thanks a ton for any suggestions! 😊

2 Comments
2025/01/30
15:33 UTC

9

why does Apple developer Account take so long ?

I registered for their account in October and yet I still haven't gotten any replies.. has anyone dealt with this kind of situation and how did you guys fix it?

14 Comments
2025/01/30
12:35 UTC

18

Clean Architecture vs What I do

I work without a senior or a colleague to ask, so I want to ask you if I'm working correctly and that I'm heading in the right direction. I currently work with Feature Based design pattern, that is kinda organized like clean architecture but not 100%, so my files look like this:

core:

|__ api_provider

|__ app_router

features:

|__ auth

| | _ data

| |___|___ remote

| |___|___|__ models

| |___|___|__ repositories

| |___|___ local

| |___|___|__ shared_pref

| | _ presentation

| |___|___ bloc

| |___|___ screens

| |___|___ views

| |___|___ widgets

and I've found this structure to be easy to maintain and work with and it reduces lots of time than writing into an extra layer (domain), and splitting your models into entities, and models. and splitting your repository into usecases and repos and impl, as this flow slows down developing time by a lot.

I understand that this benefits Unit-Testing and follows the TDD approach but is this the case?

I fear that I'm missing something or that I'm heading in the wrong direction cause I have no supervision, should I stick to following clean architecture, or maybe learn writing test cases so I understand the need for this structure?

18 Comments
2025/01/30
09:42 UTC

21

What analytics tools do you recommend for tracking user behavior in a mobile app?

I'm a mobile app developer looking to understand how users interact with my app. I've heard about various analytics tools but am unsure which ones provide the best insights for mobile user behavior. Any recommendations?

25 Comments
2025/01/30
04:32 UTC

4

Ideas for new project

I will start make a new recipe project, I'm making the screens already... But this time I'm thinking of making a separated backend(always used firebase and all in dart).

I work as a node/vue dev with mysql as db, and I'm thinking of making the backend in javascript (in fact use BunJS to learn). Anyone in here use? Or the backend in node itself.

I will store the informations in a local mysql db and later will up in a Digital Ocean that I have and am not using, what do you think about that?

2 Comments
2025/01/30
03:29 UTC

28

Mac mini is good

Hey everyone I’m a flutter developer and take heavy projects to work on and i have budget 600 dollars to get pc or mac mini (i’m from egypt) and i want it to be main pc, is mac mini m4 base will be enough or I should get pc

20 Comments
2025/01/30
01:00 UTC

9

First app submission to Google Play Store.. how long is it taking you?

This only applies to first app submission, which undergoes a manual review by Google staff and not subsequent updates, which is quick and takes just hours as they probably use automaton.

I submitted last Tuesday, due to a product launch I initiated contact with google app support.

On last Thursday they rejected and ask me to improve placement of a button onto of two of the screens.

I placed it on one of the screens and resubmitted they again rejected and tell me to place the button into the last examining screen. I did just that and added the button onto the last screen on last Friday.

It has been radio silence since then.. today is Thursday in Asia and we are having a lunar new year celebration.. not sure if it’s impacting the review times.

Should I be worried? What’s your experience? We have put a lot of hard work into this app and it’s painful to see it delayed. Our apple submission cleared almost immediately - we thought apple review would be harder.

Quite anxious ;(

10 Comments
2025/01/30
00:52 UTC

1

Can i set up a local database to store some data from a flutter macOS app?

I am doing some testing on some flutter code that i am running as a macOS app. I need to store some data in a database but dont really need it to be online. One option is to just use firebase but i will need to query the data. I know its possible to run a postgres server locally (id need to figure this part out as well) but is it possible to directly store data in this from the flutter app or do i need a node server running locally as well to act as a rest api to get the data?

1 Comment
2025/01/30
00:30 UTC

Back To Top