r/FlutterDev • • May 10 '23

Article What's New in Flutter 3.10

Thumbnail
medium.com
125 Upvotes

r/FlutterDev • • Oct 11 '20

Video Flutter Testing For Beginners - The Ultimate Guide

Thumbnail
youtu.be
125 Upvotes

r/FlutterDev • • Jul 17 '20

Article My Journey of 100 days of Flutter and Awesome Flutter Tips and tricks & how it improved me as a developer and opensource contributor. You are all part of this. Thank you so much šŸ™šŸ¼

Thumbnail
erluxman.com
125 Upvotes

r/FlutterDev • • Jun 17 '20

Article Flutter and Desktop Apps

Thumbnail
medium.com
125 Upvotes

r/FlutterDev • • Mar 09 '19

Video Flutter UI/UX: Curved Navigation Bar

Thumbnail
youtube.com
125 Upvotes

r/FlutterDev • • Nov 26 '23

Example I combined Flutter and Kotlin Multiplatform in a complex personal productivity app (journal + planner + task + note + habit + tracker + goal + project management,...) and it's already been nearly 6 years

124 Upvotes

BACKGROUND

In 2018, I was finding ways to make my journaling app (originally an Android app) a multiplatform project and found Flutter. Was wondering should I rewrite the app in Dart but then I found an article on Medium (couldn't find it now) about the possibility of combining Kotlin for business logic and Flutter for UI which would be the best of both world for me. I tried it out and it worked. Started working on migrating the app in early 2019.

At the time, Kotlin Multiplatform is still in Alpha while Flutter was still in beta so that was a lot of risk but I thought that I should do it right away because they work quite well already on the Android side and the longer I postpone the harder it will be for the migration and then I would waste a lot of time learning and writing Android UI code just to be discarded later on.

THE JOURNEY

The approach was to do all the business logic in Kotlin. The Flutter side would render view states pushed from Kotlin and also send events back, all via platform channels.

The first production on Android was published after 8 months. The app worked pretty well for me but there were still quite many bugs, especially with the text editing experience. The app's revenue was going down about 50% after 8 months or so and continue to go down afterward.

I didn't worry much about it because I thought making it to iOS will fix all the financial problems.

I spent a lot of time migrating from Kotlin-JVM to Kotlin-Multiplatform and then work on the iOS version, got it published on the App Store in November 2020. The iOS app was quite buggy though mostly due to Kotlin-Native still in alpha. To my surprise, the iOS journaling app market has become so competitive that the app could hardly make any meaningful revenue at all.

The revenue was down to a very low point. Decided to focus on the Android version again and work on new features.

Then Flutter 2.0 was released with web support out of beta and just in less than 2 month I got a web version running (late April 2021).

Since then I've been working on improving the app's architecture, adding new features, fixing bugs. The app is not a financial success yet but not too bad (making about $2k a month in profit).

CONCLUSION

It was such a hard journey, I made many mistakes, but in the end I think combining Flutter and Kotlin was still the best decision. I can now continuously and easily make updates for 3 apps with only one code base for a fairly complex app. The reward is worth it!

The situation is different now so I'm not sure if I would choose the same path if want to build a new app. Dart has gotten much better but I still have the best experience writing code in Kotlin and the bridge I've built was quite robust already.

Want to take this chance to say thanks to the Flutter and Kotlin teams and the community. I'm constantly impressed and thankful for the progress and the quality of their works during the past 6 years and they are the ones that make it possible for me to do what I'm doing now.

The app is Journal it! (Android, iOS, web). I'm also doing #buildinpublic on X if you're interested.

TLDR:

I started migrating my Android app to Kotlin Multiplatform + Flutter to make it available on all Android, iOS and web. It was hard but it's worth it. And I might still choose that approach today.


r/FlutterDev • • Oct 25 '23

Discussion What are some Flutter/Dart tricks/hacks/helpful pieces of advice that you have gathered over time which are not widely known?

124 Upvotes

Could be everything, IDE related, debugging, testing, deployment, Firebase, whatever.

I'll start with a few:

- In VSCode, you can add dependencies with CTRL+Shift+P -> Add (Dev) Dependency

- Also in VSCode, you can configure it so that on every file save, dart --fix runs and thus fixing things like missing consts, missing key in Constructor etc, essentially everything which is underlined blue

- all functionality of the http package is included in dart:io, http is only for platforms where dart:io is unsupported (web)

- Image Widgets have their own fit property and they don't play nice with fitted box

Do you have more of these "random" pieces of advice that save a little bit of time every now and then?


r/FlutterDev • • Feb 03 '22

Video Flutter Update: Windows

Thumbnail
youtube.com
124 Upvotes

r/FlutterDev • • Aug 29 '21

Plugin Now it's possible to build your Apple CarPlay Apps with Flutter! šŸŽ‰šŸŽ‰

124 Upvotes

I recently saw a post on Reddit, so I want to share the solution with everyone. Now it's possible to build and run your Apple CarPlay Apps with Flutter šŸš€

Apple CarPlay is now a standard feature in most of our automobiles. flutter_carplay aims to make it safe to use apps made with Flutter in the car by integrating with CarPlay. CarPlay takes the things you want to do while driving and puts them on the car’s built-in display.

In pub.dev: https://pub.dev/packages/flutter_carplay

GitHub: https://github.com/oguzhnatly/flutter_carplay

This package is now a candidate for Flutter Favorite Awards! To support, feel free to star, like, comment, and contribute. Contributors are always welcome!


r/FlutterDev • • Feb 19 '26

Plugin Cached Network Image is unmaintained for 2 years, so decided to fork and create ce version of it...

123 Upvotes

TLDR; cached_network_image is left to rot. Decided to take the burden. First switched from custom sqflite cache manager to hive_ce got up to 8x faster. Looking for community feedback.

https://github.com/Erengun/flutter_cached_network_image_ce

EDIT:
You guys wanted it. I plublished it try on
https://pub.dev/packages/cached_network_image_ce
Its very experimantal.

So yesterday my coworker asked me about a performance problem with cached_network_image and when i was looking at the github issues i noticed project is basically unmaintained for 2 years and its a major problem for a package that has 2M downloads on pub.dev . I am a open source contributor of projects like flutter_hooks, freezed, very_good_cli even flutter and dart sdk itself. Think its my time to be author this time instead of contributor.

What did change?
- The first thing i changed was changing default cache manager from authors flutter_cache_manager (unmaintained about 2 years, uses sqflite) to hive_ce and the performance difference was crazy.

Benchmark: Metadata Cache Lookup (100 ops)

OperationStandard (sqflite)CE (hive_ce)Improvement
Read (Hit Check)16 ms2 msšŸš€ 8.00x Faster
Write (New Image)116 ms29 ms⚔ 4.00x Faster
Delete (Cleanup)55 ms19 ms🧹 2.89x Faster

(Tested on iPhone Simulator, consistent results across file sizes)

Why hive_ce is crushing sqflite

Looking at benchmark, the 8.00x speedup on reads (2ms vs 16ms) is the critical stat.

  1. Platform Channel Overhead: sqflite has to serialize data in Dart, send it over a Platform Channel to Java/Obj-C, execute SQL, and send it back. That round-trip cost is huge for tiny queries (like "does this URL exist?").

  2. Dart-Native Speed: hive_ce (like Hive) keeps the index in memory and reads directly from the file using Dart. There is zero bridge crossing. You are reading at memory speed, not IPC speed.

Whats next?

I looked at the most commented issues and they were mostly about leaks so probaly can focus on that but decided to get the community feedback first to validate.

I don't like ai generated stuff so writed myself sorry if i made any mistakes in writing.

The project is not published to pub.dev but you can see the code on github. If this post gets enough feedback will surely publish it.


r/FlutterDev • • Feb 11 '26

Article What’s new in Flutter 3.41

Thumbnail blog.flutter.dev
123 Upvotes

r/FlutterDev • • May 30 '23

Article The most important Flutter 3.10 feature that nobody talks about

Thumbnail
medium.com
123 Upvotes

r/FlutterDev • • Feb 28 '22

Discussion Enjoy Rust, a modern language with performance, reliability and productivity, seamlessly with Flutter: flutter_rust_bridge comes with more features and elaborated doc

123 Upvotes

Link: https://github.com/fzyzcjy/flutter_rust_bridge

Last time, flutter_rust_bridge was still a small project with many rough edges, but now it is much better. Not only does it have much more features, but we even have a small "book" discussing the features, tutorials, and configuration steps in detail.

A quick overview of the advantages:

  • Memory-safe: Never need to think about malloc/free.

  • Feature-rich: enums with values, platform-optimized Vec, possibly recursive struct, zero-copy big arrays, Stream (iterator) abstraction, error (Result) handling, cancellable tasks, concurrency control, and more. See full features here.

  • Async programming: Rust code will never block the Flutter. Call Rust naturally from Flutter's main isolate (thread).

  • Lightweight: This is not a huge framework that includes everything, so you are free to use your favorite Flutter and Rust libraries.

  • Multi-platform: Android, iOS, Windows, Linux, MacOS (Web coming soon)

  • Easy to code-review & convince yourself: This package simply simulates how humans write boilerplate code. If you want to convince yourself (or your team) that it is safe, there is not much code to look at. No magic at all! (More about safety concerns.)

  • Fast: It is only a thin (though feature-rich) wrapper, without overhead such as protobuf serialization, thus performant. (More benchmarks later)

  • Pure-Dart compatible: Despite the name, this package is 100% compatible with pure Dart.

I want to say thanks to all our contributors: Desdaemon, SecondFlight, AlienKevin, surban, Unoqwy, antonok-edm, efc-mw, valeth, trobanga, Michael-F-Bryan, bus710, rustui, and the contributions can be seen in the changelog. Special thanks for Desdaemon, who has been contributing a lot of PRs, such as enum structs, options (nullablity), many bugfixs, and documentation overhaul.

P.S. Cross-posted from https://www.reddit.com/r/rust/comments/swrbyv/write_ui_using_flutter_a_crossplatform_hotreload/ since this library relates to both Flutter and Rust


r/FlutterDev • • Nov 15 '21

Discussion Why isn't refresh rate a top priority issue for Flutter? Rant-ish

123 Upvotes

So this will be a rant I guess. Flutter seems like a great tool and I'm eager to use it, especially in the Desktop environment. But something is really bugging me. It's the fact that Flutter doesn't go above 60fps. Like, hello...? It's almost 2022 where high refresh rate displays are very common, and now it's even mainstream due to new iDevices targeting 120hz. Increased refresh rate gives a very much better user experience and when it drops lower than normal, it's very noticeable and makes the app feel like it's lagging and slow.

I've checked a lot of github issues relating to this. The first issues were related to Android devices where someone had to make a plugin instead of making changes to the flutter framework itself. And there are Desktop github issues from 2019 where nothing has been done since. Just slapped a P5 or P4 on it, said "this is an engine issue" and called it a day. Now that Flutter iPhone apps aren't ProMotion compatible, it brought some attention to this issue. But from what I understood, nothing is being done in the near future since they slapped a P4 on that github issue as well.

I just can't treat Flutter with it's supposedly "Beautiful UIs" and "Native Performance" as a serious tool to built my apps with, when such an important feature as refresh rate isn't a priority. What do you think?


r/FlutterDev • • Mar 28 '20

Article Reverse engineering Flutter apps (Part 1)

Thumbnail
blog.tst.sh
123 Upvotes

r/FlutterDev • • Oct 08 '19

Dart Dart has extensions! It's 2.6 dev branch iirc but the analyzer is setup to play around with it already.

Thumbnail
twitter.com
123 Upvotes

r/FlutterDev • • May 15 '19

Article Reflectly — From mobile to web in less than 4 beers

Thumbnail
medium.com
123 Upvotes

r/FlutterDev • • May 08 '19

Dart Announcing Dart 2.3: Optimized for building user interfaces

Thumbnail
medium.com
123 Upvotes

r/FlutterDev • • Apr 20 '26

Discussion Flutter + FFI is wildly underrated… you can basically build anything

122 Upvotes

I spent the last year building an app to compete with Adobe Scan / CamScanner.

And honestly? Flutter + FFI surprised me a lot.

Instead of relying only on Flutter or going fully native, I mixed Flutter with native libraries using FFI and the result is way better than I expected.

- Scanning + document detection feels buttery smooth

- UI is 100% controllable (no weird limitations)

- Dynamic theming actually propagates everywhere, even the detection pipeline UI

- Performance feels native, not ā€œhybridā€

It basically gave me the freedom of native development + the speed of Flutter.

At this point I’m convinced: if you know how to use FFI properly, Flutter can scale way further than people think.

Curious if anyone else here is pushing Flutter this far or hitting limits with it?

Happy to answer questions or go deeper into the architecture if anyone’s interested.


r/FlutterDev • • Mar 13 '25

Discussion Tired of Debugging Gradle Issues? It's Time for Google to Address Backward Compatibility

122 Upvotes

Hey everyone,

I'm sick of how every time we update Gradle it's like we're playing Russian roulette with our projects. Backwards compatibility is pretty much non-existent and it seems like fixing one thing just leads to another headache. Does anyone else feel like we're wasting hours on issues that shouldn't even be a thing?

I don't know about you but I'm tired of the constant back and forth with breaking changes and endless bug fixes. It's time for Google to step in and make Gradle more reliable something that works with older code without turning our projects into a mess every time an update drops.

If you've had similar struggles drop your experiences here. Maybe if enough of us speak up we can push for real improvements


r/FlutterDev • • Dec 01 '24

Article Lessons learned releasing my first flutter app on iOS

122 Upvotes

After working for over 3 years on a weekend/weeknights project I finally released version 1 on iOS, coming from corporate software world, without having native development experience Flutter was an ideal choice for me to target both Android and iOS.

I gained a lot of Flutter and package ecosystem experience along the way; to show my appreciation and say thank you to flutter open source community I am willing to answer your questions.

Here are my experiences and what I used:

  1. Used Provider for state management, get_it for DI (dependency injection), when I started riverpod was not mature, probably in the future I will try riverpod instead of provider

  2. Intl for localizations and number formatting, however number formatting was a bit tricky as either fixing decimals to 2 decimals or skipping the decimals was not enough:

  • If you skip decimals then it’s not useful for strong currencies like Kuwaiti dinar, Bitcoin etc where even 0.01 is a meaningful or big amount, which means you will show 0 for BTC 0.01 which is equivalent to 900USD

  • By fixing it to 2 you still have issue 1 e.g. for 0.001 BTC, on top of that all amounts will have unncessary 00s making the UI crowded

  • Hence, I used a progressive approach based on the value, to show minimum decimals in view only fields, at the same time should be able to show amounts as small as 0.00001 BTC, however show all decimals where it's an entry field

  • One thing I regret is using double for amounts due to its floating point limitations, 69656.3 is formatted as 69,656.300000000003, and 1234567.89 as 1234567.889999999897 due to IEEE-754 floating point definition, though its not just a dart issue, it is hard-coded into the CPUs, good luck explaining this to the end users

  1. Used a combination of sqflite and shared_preferences for persistence, instead of ORM tools to not have performance overheads, and to precisely control DML and DDL the way I want specially for DB upgrades overtime

  2. Initially used http for networking then switched to cronet and cupertino_http for performance reasons

  3. Used workmanager for backend processing, however it’s becoming a pain point due to its almost abandoned state even though the plugin is under flutter community

  4. For in-app-purchases I used official plugin, did a lot of trial and error due to intricacies and differences between Android and iOS workflows and behavior, with lots of manual testing. I recommend testing edge cases using delayed payments to minimize issues during production rollout

  5. Use developer options on both Android and iOS to put network limitations e.g. speed and packet loss to experience performance issues in countries with lagging internet infrastructure, this is highly recommended when you include in-app-purchases and Ads

  6. Used crashlytics from the get-go to fix errors before they become widespread, its highly recommended(or sentry) together with analytics

  7. Tried following TDD with clean architecture as much as I could, however instead of doing every unit test I leaned towards behavior testing. Business logic has almost 100% tests coverage

  8. Initially hand wrote most of the code apart from json_serializable, and equatable, later created a complex mason brick which outputs complete feature boilerplate including entities, view models, data sources, repositories, and use cases

  9. Used Android as a playground for years with minimal functionality before releasing on iOS

  10. Releasing the App on app stores:

  • After reading bad experiences from others, tried to not leave anything to chance by overthinking and overly preparing 😊 reading all Apple and Google docs and best practices and comments from others

  • Android release was a long time ago for limited open testing so don't remember exact details but it was smooth, took 1 to 2 days

  • iOS was better than expected even though I submitted on a weekend, timeline from logs: Prepare for Submission Sep 15, 2024 at 6:33 PM, Pending Developer Release Sep 17, 2024 at 4:30 AM. The only issue I faced was creating developer account before release, which if I remember correctly took more than a month for reasons only known to "Apple engineers" though the support staff was very kind. So it’s recommended to start developer account process quite in advance

Ā Recommendations for dependencies:

  1. Keep your dependencies to a minimum and try to remove unmaintained ones

  2. Try to update dependencies once every couple of weeks, but do not use the latest one instead use the one before that which was released atleast a week ago. Whenever you update a dependency read the changelog and if the dependency does not follow semantic versioning, then overview the code to know what really changed

  3. Do the upgrades one dependency at a time and test the app to isolate errors related to one dependency

  4. Do not upgrade to Flutter latest stable until it has received 3 minor hotfixes e.g. instead of going for 3.24.0 wait till at least 3.24.3

Must check the new official Architecting Flutter apps doc before starting your new app or refactoring existing ones

If you want you can check the app here:

Android App

iOS App


r/FlutterDev • • Sep 23 '23

Discussion Switching to Flutter finally stopped my StackOverflow accounts from being banned

122 Upvotes

I used to have to made a new stackoverflow account every few month from getting my reasonable questions downvoted into the ground by since switching to flutter i now ask flutter questions and haven't gotten a single downvote so far. why is the flutter community so much less toxic than other programming communities and what can they learn from us?


r/FlutterDev • • Aug 11 '21

Community i made an app for my math students using Flutter

Thumbnail
youtu.be
122 Upvotes

r/FlutterDev • • Nov 10 '19

Community Recap: Flutter and Dart are dominating, Interact has hatched 🐣

122 Upvotes

Hey, fellow Flutters! Here's a recap of what's been happening over the past couple of weeks in the Flutter-verse.

Love it? Hate it? Let us know in the comments!

Want to get it by email? Click here.

____

šŸ’„ Flutter and Dart are absolutely crushing it...

Utter and complete domination...Github just released it's 2019 State of the Octoverse report and there's nothing else to say except that it appears Flutter and Dart are here to stay. Here's the TLDR;

  • Flutter is in the top 10 Github repos...while Github stars aren’t the end-all-be-all when it comes to measuring popularity, Flutter making its way into the top 10 is impressive given that it’s only been a thing for a little over 2 years (actually — did you know Flutter is almost 5 years old and used to be called Sky?). The majority of the top 10 (Vue, React, vscode, etc.) are both popular and have staying power. If this milestone is a sign of things to come, expect to see more businesses adopt Flutter for their next mobile project and as a result, more jobs!

  • Flutter is #2 in contributors...with 13k people committing their time to make an awesome framework even better.

  • Flutter is the #2 fastest growing open source project by number of contributors...with an astounding 279% growth since it's 1.0 release in December 2018.

  • Dart has become the FASTEST growing language on Github...get ready for this...a 532% increase in usage over 2018. Wow.

So...how does Flutter actually work? āš™ļø

Getting under the hood...one of the great things about frameworks, like Flutter, is that they allow us to jump right in by packaging everything up into something that ā€œjust worksā€ without causing major anxiety. But understanding how that framework works under the hood can be extremely valuable in taking your skills to the next level. Intrigued? Then check out this must-read article on Flutter internals by Didier Boelens. Worth your time and brain-power.

You can never have enough state management

While we’re well aware that there is no shortage of news, articles and videos about state management, there’s a few that caught our eye this week...

  • Provider for Humans...the title says it all. While provider isn’t the most complex package on earth, we wouldn’t exactly call it trivial. In his article, Scott does a nice job of cutting through the jargon and getting down to exactly what provider is and how it works.

  • Making sense of all those Providers...Provider, ListenableProvider, ChangeNotifierProvider, StreamProvider, FutureProvider...holy sh*t. Great article by Suragch that breaks down each type of provider and what it does.

  • Bloc hits 1.0...the big changes? Alignment with the core Dart Stream/Sink API and new companion package called bloc_test that makes testing blocs easy-peasy. Edit: Bloc is actually now at 2.0...that was quick! Thanks to _thinkdigital for letting me know!

Build, test, deploy — repeat!

So you’ve written a killer Flutter app...but don’t forget about building, testing and deploying it...automagically!

  • Gotta keep em’ separated...different endpoints, different API keys, different builds for local dev and production. How do we keep our environment-specific configurations both secure and usable? Learn how to use multiple entry points to load and build different versions of your app.

  • Automate all the things...using continuous integration/continuous delivery (CI/CD) for your projects or within your organization? Or thinking about implementing it and are already using or planning to use GitLab? Check out part 1 of Roger Tan’s series on using GitLab to build, test and deploy your Flutter apps.

  • Ain’t nobody got time for that...clients never have enough money to pay for testing and we never have enough time to code it, but alas we still need tests! In his article, Andrea Bizzotto teaches us how to use CodeMagic to run fully-automated integration tests with Flutter Driver.

More from the Flutter-verse

šŸŽÆ Dart 2.6 is here and it’s gone native

We’re getting spoiled over here...the Dart team continues to bring us awesome new features at a break-neck pace with the official release of Dart 2.6...

  • Self-contained, native executables...Dart has supported AOT compilation to native code for years now but it’s only been exposed on iOS and Android via Flutter. That all changes with `dart2native`, which allows you to compile for macOS, Windows and Linux. Let the games begin.

  • dart:ffi goes beta...Dart 2.5 brought us a preview of the Dart C interop mechanism. 2.6 brings it into beta with some breaking API changes but overall stability is expected to be high with API changes being less frequent going forward.

  • Extension methods are here...Dart 2.6 officially brings extension methods into preview. If you missed Snacks #2 and our brief overview of extension methods, here’s a quick primer: extensions allow you to add functionality to existing classes without inheriting from the class or changing its underlying implementation.

While we’re on the topic of extension methods...yes, we’re a little bit obsessed and we know that we’ve piqued your interest. Ready for more?

  • Hold up...what’s an extension method?...we’re glad you asked! From the machine that is Resocoder comes a great introduction to extension methods and how to apply them in the real world.

  • Superpowers for Dart...from the creator of Hive comes Dartx, a package that utilizes extensions to slice, dice, sort and more. It also exports the awesome Time.dart package to make working with time in Dart a pleasure.

Flutter events from across the world šŸŒ

Europe and Russia have some awesome Dart/Flutter-focused conferences kicking off soon. The North American folks are still waiting for a proper Flutter conference, but Google did announce a little something to hold them over...

  • DartUP is back...join 250+ developers in St. Petersburg, Russia to talk all things Dart + Flutter.When: Nov 23rd, 2019Where: St. Petersburg, RussiaDetails here…

  • Interact has hatched…?...while we’re not sure that a 1-day event was what everyone had in mind when they saw this tweet, nonetheless, it’s awesome to see another Flutter event. Maybe Google gives us a nice holiday surprise?When: Dec 11th, 2019Where: Brooklyn, NY, USA (but streaming live!)Details here...

  • There ain’t no party without a pre-party šŸŽ‰... Very Good Ventures, the Flutter OG, is holding a Flutter Interact pre-party.When: Dec 10th, 2019Where: Brooklyn, NY, USADetails here…

  • Flutter Europe...this one has booked Flutter superstars Filip Hracek (Google), Emily Fortuna (Google) and Provider guy, and answerer of 1-billion StackOverflow questions, Remi Rousselet.When: Jan 23rd - 24th, 2020Where: Warsaw, PolandDetails here…

Calling all music lovers (that live in Sweden šŸ‡øšŸ‡Ŗ)!

Soundtrap, a Spotify company, is looking for a Sweden-based full-stack dev with Flutter experience to work with the core team on their re-imagined mobile experience. In addition to Flutter experience, they want someone with experience in server-side programming as well...but hey, ya can’t have it all, right?