A small example of how a generic bloc looks like:
https://gist.github.com/hawkkiller/c17563201247e53f2c1b0295f37e8903
https://gist.github.com/hawkkiller/c17563201247e53f2c1b0295f37e8903
Gist
A good looking BLoC that conforms to design principles and manages the state correctly.
A good looking BLoC that conforms to design principles and manages the state correctly. - bloc.dart
π5β€1
The next article will be UI Kit Part 2, where we'll cover custom components, breakpoints, adaptive design, animations, navigation, and more.
After that, I'm considering writing about managing Internet connectivity - specifically, how to detect and handle connection changes, how to implement proper management of data, BLoCs, and widgets, and how to automatically reload the data when the connection is restored.
What do you think? π
After that, I'm considering writing about managing Internet connectivity - specifically, how to detect and handle connection changes, how to implement proper management of data, BLoCs, and widgets, and how to automatically reload the data when the connection is restored.
What do you think? π
2π15
Sizzle Starter now includes a robust analytics solution and an implementation for firebase.
Check it out here
Check it out here
π3π₯3
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)
π6π₯6β€3
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.
π₯7
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 π
π99π₯3β€1π1π€1
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.
π7π₯3β€1
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.
π8π₯3β€2
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!
π9π₯3
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
15π9π₯7
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!
π’8β€βπ₯1π1
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.
π6β1β€βπ₯1
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
β€6π₯1