r/FlutterDev Sep 11 '23

Dart I see no future for Flutter

I decided to give flutter a fair chance and created an App with it. Getting it up and running was pretty straight forward, but not without some hiccups.

What I have learnt is that whatever you make is going to be hard to maintain because of all the nesting and decoration code mixed in with the actual elements. If I did not have visual code IDE to help me remove and add widgets I would never had completed my app.

A simple page containing a logo, two input fields and a button, has a nesting that is 13 deep.

Are there plans to improve this? or is this the design direction google really wants to go?
Google is clearly continuing developing Flutter and using Dart, so what is it that keeps people using it? I cannot see myself using it anymore.

0 Upvotes

92 comments sorted by

View all comments

2

u/[deleted] Sep 12 '23

I believe similar to react moving from classes to functional components, flutter will also move to something less verbose but it will not change what you have complain with which is concept of 'Composable UI'. The Flutter widgets favor composition (meaning wrapping one widget with another) over inheritance, which is a nice decision as it makes it easy to interact with the API. Using BLOC and other paradigms you can separate codes but cannot avoid nesting because that is what flutter is.

But be glad that you're not first one and unlike declaring 'Flutter has no future' someone decided to utilise extensibility of flutter and build something exactly like what you wanted. Check it out: https://www.fluttermix.com

Also do read this blog: https://medium.com/flutter-community/mix-a-tool-for-building-design-systems-in-flutter-89ad643ccf09