(no title)
wismwasm | 1 year ago
- Comes with a decent component library out of the box that’s easy to customise
- Dart is a nice language overall, null save and typed
- As it paints on the screen there’s no need to write any UI layer more than once for different platforms
- Good development experience with VS Code
- JS interop in case you need to use JS libraries
I just really like to avoid CSS though and flutter offers that. Having pre styled widgets with documented styling parameters as arguments is great.
santy-gegen|1 year ago
wismwasm|1 year ago
If you decide to give it a try there are some packages I’d recommend:
- Follow the official getting started: https://docs.flutter.dev/get-started/install
- State management: https://riverpod.dev/ is easy enough and quite powerful. The official docs still recommend Provider, but that’s basically deprecated. Riverpod is an improved Provider by the same maintainer
- Go router https://pub.dev/packages/go_router is the standard for routing
- I used sqflite for persisting local state: https://pub.dev/packages/sqflite
The setup may of your dev environment may take a bit (the mobile SDKs are quite big to download) but after that it’s quite smooth.
Flutter is “inspired” by react so you should feel familiar with the widget lifecycle. Unlike modern react though it uses class based components and when using stateful widgets (components) it’s split into two separate widgets.