r/FlutterDev • u/realrk95 • Oct 24 '23
Discussion State of Flutter in 2023
In summary, I began utilizing Flutter in 2020 for both the development of our company’s products (the name of which I’ll refrain from disclosing to avoid any security breaches) and various internal tools.
Following extensive UX research and analysis, significant alterations were made to our products. Our primary user base comprises Android (60%), Windows (30%), iOS (7%), and Mac (<2%). Additionally, our B2B IoT devices are now available in over five EU countries, with plans for expansion to the US, UK, and Middle East. Our application offers actionable insights and analytics sourced from these edge devices, serving importers worldwide.
Reflecting on my previous post available here, I’ve noted several developments:
Web performance has markedly improved, with a noticeable reduction in jank, even on Safari. While not perfect, the imminent stable WASM release offers promising prospects.
While previously reliant on Firebase for machine learning, authentication, and analytics, we’ve transitioned to a backend entirely developed with Express.js and PostgreSQL. Legacy systems utilizing Firebase remain, showing slow progress in Windows support. Nevertheless, this move to an independent backend has been empowering, aligning with @fireship’s sentiment of the challenges in building entirely independently.
The lack of cross-platform libraries for Bluetooth, USB, and other IO operations persists. Our company’s devices support NFC, BLE, and USB; however, existing solutions like quick_blue and quick_usb are outdated and unreliable. We’ve since adopted reactive_ble, a stable package developed by the Phillips Hue team.
There have been substantial improvements in battery life and performance, surpassing expectations, with Impeller playing a significant role in these enhancements.
Google Maps remains unsupported on Windows, Mac, and Linux, though web support has improved. A Dart version of Google Maps is long overdue.
Notifications for Windows and Web are still absent. We’ve integrated flutter_local_notifications with our custom backend, moving away from Firebase messaging.
The rise of LLMs has rekindled interest in machine learning and data science. However, most models are confined to web APIs, leading to operational and maintenance challenges. TFLite needs to expand support to at least Windows and Linux, if not web.
3D support: I love ThreeJS, can’t wait to see how impleller would compare if we’re given a similar implementation.
In conclusion, while many challenges have been overcome through community efforts, Flutter updates, and creative problem-solving, working with hardware using cross-platform frameworks remains a complex task. For those in a similar situation, don’t anticipate immediate IO support. Time permitting, we plan to contribute to reactive_ble. If resources allow, consider developing your own backend to avoid over-reliance on BaaS solutions like Firebase.
A heartfelt thanks to the Flutter Team for their ongoing dedication to this open-source framework. I earnestly request native Dart build support for plugins, more ML deployment options/targets and the necessary hardware IO support.
5
u/brusselssprouts Oct 25 '23
Can you speak to your experience with reactive_ble? I've used flutter_blue (and flutter_blue_plus) quite a bit, but maintenance has at times slipped.
2
u/realrk95 Oct 25 '23 edited Oct 25 '23
I’ve heard good things about the Flutter Blue Plus implementation. Will try it out for sure, but that will require major restructuring of the app that is heavily dependent on reactive_ble. In my testing, Flutter_Blue gave me tons of issues on certain iOS devices and most Android devices (especially before Android 12).
Update: Just today morning I tried quick_blue from quick.flutter (not the woodemi repo) and it now seems to work on both Android and Windows well. Might consider this.
1
1
u/_tauflife_ Oct 27 '23
I can tell you I've used it and I thought it was quite good. Plus, the guy who did a lot of that package (I think) was really reachable and good at responding to questions.
9
u/under_brecher Oct 24 '23
What for are you using Google maps in your applications? For the most part when I needed a map, and interaction with geodata I used flutter_map and was very pleased with it. And your not reliant on google maps, since you can use it with free tile-services.
5
u/realrk95 Oct 24 '23
I haven't used that package for a while now, last I checked it was quite buggy. Will explore it once and create a post if it turns out to be better now. And we primarily use Google Maps for geofencing our IoT fleet, checking status of transport, adding new devices/deployments, generating reports, places api etc.
3
u/under_brecher Oct 25 '23
I don’t know I which state it was when you were using it, but the package was recently updated to v6.0.0 which fixes a lot of issues, and the maintainers are very active :)
2
3
u/rio_sk Oct 25 '23
Isn't there a threejs porting for flutter? I bet I saw one a week ago. I'm also waiting for a decent opengl implementation
1
u/realrk95 Oct 25 '23
I’m assuming you’re talking about three_dart. It’s not bug free as of now (eg: incorrect texture loading, pan and zoom issues etc.). I have a few projects in mind for it but unfortunately, the JS implementation is way ahead of dart right now, so for the time being I will stick with that.
1
u/rio_sk Oct 25 '23
Exactly, I just saw it casually while browsing and did not have the time to test it. I another one who's waiting for a proper 3d system in Flutter
1
u/Anonymous0r Oct 25 '23
I’m quite new to flutter, I have been building an app that can both be used on mobile devices as wells as browsers. Can you speak on any actions you have taken to reduce the white page load time before the splash screen shows on web, and if there is a better way you have found to use dart on web experiences?
5
u/realrk95 Oct 25 '23 edited Oct 25 '23
Here’s what we did:
Make a traditional website with good old css, html and js on the primary domain (eg: example.com) that has intro videos, information, demos etc.
Include “Get Started” button to a subdomain that actually hosts the app (eg: app.example.com)
Show a decent loading screen animation that we designed using Rive
Reduced third party dependencies from 57 to just 21.
This has 2 key benefits:
Keeps the SEO optimised since the main flutter app is behind a login screen on a subdomain anyway
Slower load times and less jarring experience for primary domain. If dart vm ever performs on par with node (in chrome), I’d implement it in a heartbeat.
1
u/crimsonvspurple Oct 25 '23
Really appreciate your post.
Notifications for Windows and Web are still absent. We’ve integrated flutter_local_notifications with our custom backend, moving away from Firebase messaging.
Can you go into more details about this?
What were the pros/cons before doing this and what led you to make this transition. Once the transition is complete, what do you think are the pros/cons?
As you have noted in another post, push notif are essential (in future). How are you going to reconcile these?
2
u/realrk95 Oct 25 '23
If we end up using FCM, it will probably be forced. I have yet to see a better native implementation for Android and iOS. But since our primary userbase is on Android and Windows, AWS SNS seems like to most probable choice here. AWS also has more advanced tools for managing IoT fleets, like providing on the fly updates, remote config for the OS, subscription checking, analytics and of course integration with other solutions from AWS. I have nothing against FCM, but they need to include proper ways of communication from third party servers and Windows at the least for us to reconsider.
0
Oct 25 '23
You do realize threejs don't use canvas, right?
3
u/realrk95 Oct 25 '23
I didn’t mean the literal canvas: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas
1
Oct 25 '23
[removed] — view removed comment
12
u/realrk95 Oct 25 '23 edited Oct 25 '23
I have no doubt it can even beat express js. I have tried out Serverpod. But since I have to align myself with the backend team, their skill set is more important than my opinion on a framework in a language they’re not familiar with.
15
u/0xBA7TH Oct 24 '23
When using local notifications driven by the backend, don't you miss out on the ability to get a notification when the app is closed? Maybe you don't need that scenario in your use case..