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)
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/
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/
Michael Lazebny
UI Components, Adaptive and Responsive Design
We will create components such as text, cards and other button types. In addition, we will talk about responsive and adaptive 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 👍
If you’re interested, I will drop full working code when this post reaches 80 thumbs up 👍
Mobile Tech
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 👍
Michael Lazebny
Authentication in Flutter with Supabase (OAuth included)
Add secure authentication to your Flutter app with Supabase. Learn Google OAuth setup, robust architecture, and BLoC state management.
Navigation in Flutter
A bit of theory and my thoughts and tips on how the navigation should be implemented.
https://lazebny.io/navigation-in-flutter
#flutter #navigation
A bit of theory and my thoughts and tips on how the navigation should be implemented.
https://lazebny.io/navigation-in-flutter
#flutter #navigation
Michael Lazebny
Navigation in Flutter
Learn Flutter navigation with insights on Navigator, Router, and tips for seamless setup using go_router. Includes some theory and expert advice.
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
https://lazebny.io/sticky-headers
#flutter #article
Michael Lazebny
Sticky headers in Flutter
Learn how to build efficient sticky headers in Flutter using slivers for seamless scrolling. Includes code examples and best practices!
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
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
YouTube
Dependency Management in Flutter: Injection, Initialization, Delivery
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!
I was not very satisfied with the quality of this stream, so I will make a new one in the New Year!
Modern Monorepo management in Dart and Flutter
https://lazebny.io/modern-monorepo-management
#dart #flutter #flutterdev
https://lazebny.io/modern-monorepo-management
#dart #flutter #flutterdev
Michael Lazebny
Modern Monorepo Management with Pub Workspaces and Melos in Dart
Efficiently manage Flutter/Dart monorepos using Pub Workspaces and Melos, with examples for dependency management and workflow automation.
Call for ideas!
Please write what you would like to see an article about
Please write what you would like to see an article about
Small article about interesting way of implementing observer pattern
https://lazebny.io/sync-state-with-observers
https://lazebny.io/sync-state-with-observers
Michael Lazebny
Synchronizing state with observers in Dart and Flutter
Learn how to enhance Listenable logic in Dart with extended observer pattern for cleaner state management and reduced boilerplate code.
Removing factories from sizzle starter. They're adding too much boilerplate.
https://github.com/hawkkiller/sizzle_starter/pull/404
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
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
Google for Developers
Technical Writing One introduction | Google for Developers