r/FlutterDev • • Dec 14 '24

Discussion After a year of development, i finally released my own app

110 Upvotes

Hi everyone. Application i created is about monitoring 170+ currencies and converting them simultaneously from frequently used currencies. The development of this project took me approximately a year. Thinking about what to create, how to and what technologies to use, planning and developing all together. I definitely wanted to start with mobile application and picked Flutter to start with, because I could distribute release to android and iOS from single codebase. As the backend I decided to use .NET and as frontend used NextJS.

I used Clean Architecture to structure my project in Flutter and .NET.

Bloc for state management. It was hard to find balance in how many blocs i needed to used per page/feature. I liked to use blocs with streams. For example i could track in app purchase and internet connection with streams inside blocs and change states based on stream values. Spent 2 days to debug why my streams didn't work initially. Blocs also helped to turn on and off Admob in pages where ads are shown.

For database i am using Isar. I really like how i can view what is stored and updated in real time in browser while application is running, sort of like devtools. I store values related to app like "first app launch", "theme", entities and etc.

For the http request preferred to use Dio.

For the verification of In App Purchases, I decided to use my own server in .NET to verify purchases for both stores

The app is far from perfect, but i knew if i still sit and make everything look and feel perfect, then i would never ever release my project. I appreciate that flutter exists, the speed of iteration during development is so fast!

Edit:

Thank you, guys, for cheering!

If anyone is interested in my project, here are links:

Android: https://play.google.com/store/apps/details?id=com.vincord.currency

iOS: https://apps.apple.com/us/app/vincord-currency/id6736663120

Website: https://currency.vincord.com


r/FlutterDev • • May 14 '24

Article What’s new in Flutter 3.22

Thumbnail
medium.com
110 Upvotes

r/FlutterDev • • May 14 '24

Article Flutter Web WASM is now stable. Will you use it as a default?

Thumbnail
docs.flutter.dev
110 Upvotes

r/FlutterDev • • Jan 30 '24

Discussion Flutter is not too verbose to learn, but is too verbose to write

110 Upvotes

I saw this reddit post yesterday. This is obviously a bad take. Not only they are arguing from ignorance but they are also being dishonest about the problems a new learner would come across when adopting Flutter. However, there is a little kernel of truth buried in the whole post which I think got overlooked by most of the replies there. Flutter is not verbose to learn, but Flutter is too verbose to write. Let me explain what I mean.

Hello world! πŸ‘‹

Let's write a simple Hello World app. Lets first write this in Dart for Flutter

class HelloWorld extends StatelessWidget {
    final String name;
    HelloWorld({required this.name}); 
    @override Widget build(BuildContext context) { 
        return Text('Hello $name'); 
    } 
}

Simple enough. Let's write the same written in Swift for SwiftUI

struct HelloWorld: View {
    var name: String
    var body: some View {
        Text("Hello \(name)")
    }
}

Oh boy. Let's write in Kotlin for Jetpack Compose

@Composable
fun HelloWorld(name: String) { 
    Text("Hello $name") }
}

and lets throw JS for React too

function HelloWorld(props) {
    return <div>Hello {props.name}</div>; 
}

This was just a simple hello world, and things are already looking bad for Flutter. Why?

  • 🚩 Higher LOC ; We are immediately accumulating boilerplate

  • 🚩 Inheritance Hell; Needing to extend a class (StatelessWidget, tbh also true for View on SwiftUI). Inheritance Is evil, and from what I learned over the last couple years - always prefer composition over inheritance. But we are stuck with inheritance in Flutter (and SwiftUI)

I understand why these need to be this way to set up the widget tree. But does it need to be? Imagine writing this in Dart instead

Widget HelloWorld(BuildContext context, String name) {
    return Text('Hello $name'); 
}

This is already doable with this plugin, but this comes with a cost (of code generation). Either-way, how is this better?

  • βœ… Lower LOC ; No longer we are accumulating boilerplate

  • βœ… Inheritance Hell is abstracted away; Sure, inheritance is still there, Flutter is still Flutter, but you don't need to care about inheritance when you write your widgets.

Why can't this be the code we write? Personally, I think flutter team needs to propose an alternative functional widget approach that compete with the traditional class approach. There was this issue that was raised (and now closed), but i think such an alternative DSL can effectively address the verboseness of Flutter.

It gets more harder 🀯

Lets add some state into our widgets. Lets first write this in Dart for Flutter

class CounterWidget extends StatefulWidget {
    @override CounterState createState() => CounterState(); 
}

class CounterState extends State<CounterWidget> { 
    int count = 0;
    @override Widget build(BuildContext context) { 
        return RaisedButton( 
            onPressed: () => setState(() => count += 1), 
            child: Text("Count: $count"), 
        ); 
    }
}

Let's write the same written in Swift for SwiftUI

struct Counter: View {
    @State private var count = 0

    var body: some View {
        Button(action: {
            count += 1
        }) {
            Text("Count: \(count)")
        }
    }
}

In Kotlin for Jetpack Compose

@Composable
fun Counter() { 
    var count by remember { mutableStateOf(0) }
    Button(onClick = { count += 1 }) {
        Text("Count: $count")
    }
}

and lets throw in JS for React too

function Counter() {
    const [count, setCount] = useState(0);
    return ( 
        <button onClick={() => setCount(count + 1)}> 
            Count: {count} 
        </button> 
    ); 
}

Things are looking worse for Flutter. Why?

  • 🚩 Backward Inheritance; I never understood the reasoning behind this backward inheritance structure where you need to subclass a State to get a Widget. When I first learned Flutter; I didn't question this, but reflecting back - this makes zero sense.

  • 🚩 State Coupled with Widget; Because of this backward inheritance structure, your State can not be fully decoupled from the Widget tree (because your State need to know about the Widget). Because of this bad API design, you often need to duplicate State when you need to reuse the same State across multiple Widgets. This is not a problem other frameworks.

But does this need to be this bad? Building up from the previous example; imagine writing this in Dart instead

Widget CounterWidget(BuildContext context, CounterState state) {
    return RaisedButton( 
        onPressed: () => state.setState(() => count += 1), 
        child: Text("Count: $count"), 
    ); 
}

How is this better?

  • βœ… No more backward inheritance ; State is State, a Widget is a Widget

  • βœ… No more coupling; State is just a holding class for your data, it doesn't need to know about the UI (Widget)

Lets Mix It Up πŸͺ†πŸͺ†πŸͺ†

Lets make our HelloWorldWidget to make it look a little nicer. In Dart for Flutter

class HelloWorldWidget extends StatelessWidget {
    final String name;

HelloWorld({required this.name});

@override Widget build(BuildContext context) { 
        return Container( 
            padding: EdgeInsets.all(16.0), 
            color: Colors.blue, 
            child: Text('Hello $name!') ); 
        } 
    }
}

Let's write the same written in Swift for SwiftUI

struct HelloWorld: View {
    var name: String

    var body: some View {
        Text("Hello \(name)!")
            .padding(EdgeInsets(top: 16, leading: 16, bottom: 16, trailing: 16))
            .background(Color.blue)
    }
}

In Kotlin for Jetpack Compose

@Composable
fun HelloWorld(name: String) { 
    Text(
        text = "Hello $name!", 
        modifier = Modifier
            .padding(16.dp)
            .background(Color.Blue) 
    ) 
}

In JS for React

function HelloWorld(props) {
    const style = { 
        padding: "16px", 
        backgroundColor: "blue", 
        color: "white", 
    };
return (<div style={style}>
        Hello {props.name}!
    </div>); 
}

Why this approach is a pitfall for Flutter

  • 🚩 Too much nesting; Customising your widgets further requires you wrapping your widgets in more Widgets; and soon you'll arrive in a nesting hell. This approach is not scalable nor intuitive

Can we do better? Building up from the previous example; imagine writing this in Dart instead

Widget HelloWorld(BuildContext context, String name) {
    return Text('Hello $name')
        .padding(16)
        .background(Colors.blue); 
    }
}

How is this better?

  • βœ… No more nesting/wrapping; You can style your widgets simply by chaining these modifiers calls (similar to SwiftUI).

Lif(s)t it up 🚠

Let's make a list of 'Hello's. Lets first write this in Dart for Flutter

class HelloMyPeople extends StatelessWidget {
    final List<People> people;

HelloMyPeople({required this.people});

@override Widget build(BuildContext context) { 
        return ListView.builder(
            itemCount: people.length, 
            itemBuilder: (context, index) { 
                final person = people[index]; 
                return ListTile( 
                    key: Key(person.id), 
                    title: Text('Hello ${person.name}!'), 
                ); 
            } 
        ); 
    } 
 }

Let's write the same written in Swift for SwiftUI

struct HelloMyPeople: View {
    let people: [Person]

    var body: some View {
        List(people) { person in
            Text("Hello \(person.name)!")
        }
    }
}

In Kotlin for Jetpack Compose

@Composable
fun HelloMyPeople(people: List<Person>) {
    LazyColumn { 
        items(items, key = { person -> person.id }) { person -> 
            Text("Hello ${person.name}!") 
        } 
    }
}

And JS for React

function HelloMyPeople({ people }) {
    return ( <ul> {
        people.map((people) => ( <li key={people.id}>Hello {people.name}</li> ))
    } </ul> ); 
}

Not too bad for Flutter. Why?

  • 🚩 Higher LOC ; This builder API is too verbose. Not only you need to pass in an anonymous function, we also need to pass in the length of our list.

Can we do better? Building up from the previous example; imagine writing this in Dart instead

Widget HelloMyPeople(BuildContext context, List<People> people) {
    return ListView( 
        items: people, 
        builder: (context, person) { 
            return ListTile( 
                key: Key(person.id), 
                title: Text('Hello ${person.name}!'), 
            ); 
        ), 
    ); 
}

How is this better?

  • βœ… Lower LOC; Nice, simple and concise

We can do better 🌞

I love flutter. It made me fall in love with programming and I'm forever grateful for that. But to claim it is not that verbose - as demonstrated - is just not true. It is definitely less verbose than UIKit and XML but it has a long way to go compared to the modern native frameworks.

Before you grab your pitchforks πŸ”±

Here's a little context as to where I'm coming from. I joined a small startup during COVID and got to work alongside a small flutter team building an awesome app. It was genuinely a fun project and I learned a lot. Unfortunately the company went under and I was laid off, and all opportunities in my market were looking for senior positions for which I was not qualified for. Out of desperation, I started to learn react native and native development in general - and was genuinely surprised how native platforms have caught up over the years. I always assumed native development was unnecessarily complex and unapproachable, but after being exposed to it out of desperation - I think it is actually quite good.


r/FlutterDev • • Apr 13 '23

Discussion My game is free but Firebase is now costing me. Time to monetise?

110 Upvotes

My mobile card game app is free - no ads, no pay-to-win, nothing - and it has been growing steading and organically for about a year now. A few weeks ago I released an update which encourages users to leave a review and since then growth has really stepped up a notch or three.

It’s still very small, but now regularly hitting some firebase free-tier limits resulting in some small costs to me, but with this growth rate this could become considerable in the near future.

Some approximate Google analytics stats:

  • 300 DAU, growing ~15% weekly

  • 30 minutes total daily of engagement time per user

  • 2 sessions per day per user

Should I throw in some ads? If so do you recommend a particular type or platform? Or should I paywall some features e.g. multiplayer, since that is really driving the hosting costs? Something else? What are your thoughts?

Thanks in advance!


r/FlutterDev • • May 11 '22

SDK Dart 2.17 is out with a lot of exciting features!

Thumbnail
github.com
110 Upvotes

r/FlutterDev • • Sep 04 '20

SDK Snack-bars can now be shared between Scaffolds

Thumbnail
github.com
110 Upvotes

r/FlutterDev • • Feb 28 '19

Tooling VS Code extension adds Dart DevTools integration for a Flutter Inspector πŸŽ‰

Thumbnail
dartcode.org
110 Upvotes

r/FlutterDev • • Apr 11 '25

Article The Flutter teams works on an MCP server

109 Upvotes

I just noticed that the Flutter team works an a MCP server.

You can use it to connect to a running app and take a screenshot or issue a hot reload command. Another tools can be used to an analysis report - I think. But this is probably just the beginning.

There's also a generic package for writing MCP servers in Dart.

I'm excited.


r/FlutterDev • • Mar 27 '25

Article Niche Packages to Level Up Your UI/UX

Thumbnail
medium.com
109 Upvotes

r/FlutterDev • • Jan 21 '25

Plugin Introducing card_game: A declarative Flutter package that makes building card games easy

109 Upvotes

Hey fellow Flutter devs! I wanted to share a package I built that helps create card games in Flutter. I found myself repeating a lot of animation and interaction code across different card games, so I abstracted it into a reusable package.

It handles all the tedious stuff like card movements, flips, drag-and-drop, card stacks, and movement validation automatically, letting you focus on building your actual game. You can use familiar Flutter widgets like Column, Row, and Stack to lay out your game board exactly how you want it. The API is declarative and works with any state management solution.

The example in the repo includes memory match, golf solitaire, and klondike solitaire as reference.

Check it out on pub.dev. I'd love to hear about the games you create with it!


r/FlutterDev • • Dec 05 '24 Take My Silver

Example Production Flutter app + backend project open sourced

109 Upvotes

https://gitlab.com/gutlogic/gutlogic

For a couple years, my startup Gut Logic developed and deployed its mobile app to help people identify and manage their food sensitivities. The company wound down and we open sourced the code to hopefully be useful for anyone interested in an end-to-end Flutter project. The code hasn't been touched for about a year but there are probably some useful things in here:

  • Authentication with anonymous users

  • BLoC pattern in action

  • Paywall and in-app subscription purchase

  • CI/CD pipeline for building, testing, and deploying

  • Fastlane setup to release to App Store and Google Play

  • Automated screenshot generation

I'm happy to answer questions about it.


r/FlutterDev • • Jul 26 '22

Example AirDash - New, free and open source flutter app for sending files to any device

109 Upvotes

It sends files directly between devices without requiring an intermediate server which means it is both fast, secure and cheap to maintain meaning it can be free without ads etc. The idea was to create something as easy as Airdrop but for more platforms while not requiring ads or have file size limitations etc.

Would love feedback both on the code, design and concept in general :)

App Links

Key features

  • Support for all major platforms and app stores (iOS, macOS, windows and Android)

  • 100% free and open source. No file size limitations or ads etc.

  • Fully encrypted data transfers and transfers directly between devices without an intermediate server

  • Quickly start transfers using native mobile share sheet and drag and drop on desktop

  • Send files anywhere (no need to be nearby or on same local network etc)

  • Automatically uses the best and fastest network available

Key technologies

  • Flutter 3.0 (all major platforms: iOS, macOS, Android and Windows)

  • WebRTC (file and data transfers)

  • Firebase Firestore (WebRTC signaling and config storage)

  • Firebase Functions (device pairing and config automation)

  • Firebase Hosting (website and static files hosting)

  • App Store Connect API and Microsoft Store submission API (release automation)

  • Mixpanel (web and app analytics)

  • Sentry (app monitoring and error tracking)


r/FlutterDev • • Feb 27 '22

Article Step-by-step: Using GitHub Workflows to deploy iOS builds to TestFlight

Thumbnail
jorgen.tjer.no
109 Upvotes

r/FlutterDev • • Dec 10 '21

Community It has been 16 months since I developed Flutter DataGrid.

109 Upvotes

https://github.com/bosskmk/pluto_grid

It has been 16 months since I developed Flutter DataGrid.

Currently, many functions have been added, and recently, columnGroups that can group columns to a desired depth has been added.

In Flutter, there was no DataGrid, so I started making it.

There is still much to be improved.

Not long ago, Flutter version 2.8.0 was released.

It's an honor to contribute even a little to the ever-evolving Flutter.


r/FlutterDev • • Mar 18 '21

Video Hi guys, this is my simple application about robots and skill, I used sqlite, scan and radar chart, I hope you like it πŸ™‚

Thumbnail
youtu.be
109 Upvotes

r/FlutterDev • • Dec 16 '20

Plugin Flutter Starter Β· A Flutter starter-kit for production-level apps

Thumbnail
flutter-starter.github.io
109 Upvotes

r/FlutterDev • • Nov 09 '20

Discussion 10 Flutter apps in 10 Hours livestream video

109 Upvotes

Hey guys,

I had a livestream where I tried creating 10 Flutter apps in 10 hours. I would like to thank the people who have joined me in the livestream.

Here are the apps:

  1. Timer app -- Watch | Source Code

  2. Quiz app -- Watch | Source Code

  3. Notes app -- Watch | Source Code (Failed due to provider not working as expected)

  4. Todo app -- Watch | Source Code

  5. Movies app -- Watch | Source Code

  6. Github profiles app -- Watch | Source Code

  7. Weather app -- Watch | Source Code

  8. Drawing app -- Watch | Source Code

  9. Music player app -- Watch | Source Code (Failed as package was wonky)

  10. Calculator app -- Watch | Source Code (Failed as it has a lot of steps)

I had breaks every hour of coding so I won't go insane. And I just went to the next project if I can't finish/debug in that hour. No point spending more time in an app. Hope you guys enjoy it


r/FlutterDev • • Oct 06 '20

Example I've implemented design from dribble

109 Upvotes

r/FlutterDev • • Sep 07 '20

Discussion PUB.DEV suffers from SPAM attacks (for about 5 days)

109 Upvotes

I was looking for the latest packages of the last week when I noticed the site is currently suffering a lot from spam.

https://pub.dev/flutter/packages?sort=created

Most of the spam is advertisment for Streaming and illegal download services and have titles like:

"top_10_romantic_movies_to_watch_online_2020"
"best_tv_series_to_watch_on_prime_video_2020"
"regarder_tout_simplement_noir_streaming_vf_complet_et_vostfr"
"watch_train_to_busan_2_online_full_movie_free_putlocker"

There are hundreds of those entries right now and this goes up to page 75 (at this time) and it seems as this started approximately 5 days ago.

Those "fake packages" even got high Pub Point Scores like 90/110.

So be very careful on what you click.


r/FlutterDev • • Jun 22 '20

Tooling Neovim plugin that sorts Dart imports in an organized way

109 Upvotes

r/FlutterDev • • Dec 11 '19

Example Building The Flutter Vignettes

109 Upvotes

Hi all!

I'm Grant Skinner, founder of gskinner, a digital design agency based in Edmonton, Canada. We recently partnered with Google to build a set of user experience "Vignettes" with Flutter, which I announced on stage at Flutter Interact today.Β 

You can find out more about the project here:Β https://flutter.gskinner.com/

We've also open sourced all the code here:Β https://github.com/gskinnerTeam/flutter_vignettes

We started with fairly minimal Flutter experience but jumped in with both feet. While there were challenges along the way, we loved the project and found the platform extremely productive and genuinely fun to create with.Β 

We really hope everyone is inspired by the results, and would love to see what you build.

We expect to have a number of blog posts coming in the future, detailing some of the challenges we faced and the tricks that we used to solve them. For now, we've done a high level write-up of the project that goes a bit deeper into our process:Β https://blog.gskinner.com/archives/2019/12/google-adobe-gskinner-flutter-interact-19.html

If you have questions, we're happy to answer them here or reach out to us on Flutter Twitter:

The Team: https://twitter.com/gskinner_teamMe (Grant): https://twitter.com/gskinner

If you'd like to follow our stuff in the future, please bookmark our blog:Β https://blog.gskinner.com/


r/FlutterDev • • Sep 10 '19

Video What's New in Flutter 1.9

Thumbnail
youtu.be
109 Upvotes

r/FlutterDev • • Apr 19 '19

Dart Dart 2.3 has landed in flutter master channel. 'flutter channel master'. An important release because you'll get the NEW Spread op ... in Widget children properties, Collection If and Collection For - which largely simplify readability !

Thumbnail
github.com
109 Upvotes