Mobile Tech
1.11K subscribers
91 photos
8 videos
6 files
136 links
Michael Lazebny's blog about @dart and @flutter
lazebny.io
Download Telegram
Just analyzed a pubspec one guy posted on Linkedin of his PAID flutter template :)

Let's review this pubspec.yaml file:

- auto_route: A navigation library with common issues related to templating. Currently, there's no ideal recommendation to replace it, but it's not great. Consider using go_router instead.

- awesome_flutter_extensions: While it might be useful, I don't recommend including it as a dependency in templates. Instead, add it manually if you find it beneficial in specific projects.

- collection: A great library! However, it's better to specify it under "any" versioning, along with other Flutter dependencies like meta, intl, and async.

- flutter_animate: This is a good choice.

- flutter_settings_ui: This library has been archived and only adds a settings screen. It's better to manually create your own settings screen for better control and flexibility.

- hive: This database is unsupported and problematic—avoid it at all costs. I recommend SQLite as a more stable alternative. More details here: https://lnkd.in/d5rGgdfQ.

- hooks: This is difficult to read and prone to errors. Instead, opt for using the lifecycle methods of a StatefulWidget.

- riverpod: A poor state management library with tight coupling, reliance on global variables, and side-effects. A better option would be to use bloc for state management and follow healthy dependency injection practices. More on this here: https://lnkd.in/dJKwbwsK and https://lnkd.in/dneDc5T7. Additional insights about riverpod can be found here: https://lnkd.in/deZpZH_C.

- logger: I'm not familiar with this one, but it’s often better to create your own custom logger, like the one in this template: https://lnkd.in/dha5d-UZ.

Good packages:
- mockito
- image_picker
- intl
- json_serializable
- freezed
- cached_network_image

By the way, I have my own template, that I recommend taking look as well https://lnkd.in/dz9FR5BG (it's free)
Creating reusable UI components + responsive & adaptive design.

Take a look at how Text widgets are implemented and a Window Size Scope. Really love those ones.

https://lazebny.io/ui-components-adaptive-and-responsive-design/
I have implemented authentication for my own app that involved Supabase and Oauth login via Google.

If you’re interested, I will drop full working code when this post reaches 80 thumbs up 👍
Some of my notes for the upcoming article about Navigation in Flutter!
Learn how to build efficient sticky headers in Flutter using slivers for seamless scrolling. Includes code examples and best practices!

https://lazebny.io/sticky-headers

#flutter #article
Hi everybody! Hot topic.

I will give a talk about dependency management (injection, initialiazation, delivery) in Flutter!

Time:
05/12/2024 18:00 CET

https://www.youtube.com/live/NiolORe9B4w?si=_10-akEZkmyDhx2A
Mobile Tech
On Saturday I will talk about icons https://www.youtube.com/watch?v=cTUU4K4mD0A
My laptop died 😁

I was not very satisfied with the quality of this stream, so I will make a new one in the New Year!
Call for ideas!

Please write what you would like to see an article about
Removing factories from sizzle starter. They're adding too much boilerplate.

https://github.com/hawkkiller/sizzle_starter/pull/404
Ability to clearly explain your thoughts helps in life a lot. This is especially important when you're working in large teams and need to share your knowledge with others (by writing documentation, code comments, etc.)

These free Technical Writing courses by Google can be a good start:
https://developers.google.com/tech-writing/one
https://developers.google.com/tech-writing/two
https://developers.google.com/style