Many people follow the official Flutter channel, and there is a well-known rubric called Observable Flutter, which invites the most renowned contributors and open-source activists.
Recently, Dane Mackier, the author of Stacked, presented the library and I aim to provide an overview of his brainchild. My objective is to inform and increase awareness of the architecture and principles presented, rather than critique.
Read about it in my article. This should be interesting for folks who don't use stacked as well.
Recently, Dane Mackier, the author of Stacked, presented the library and I aim to provide an overview of his brainchild. My objective is to inform and increase awareness of the architecture and principles presented, rather than critique.
Read about it in my article. This should be interesting for folks who don't use stacked as well.
Michael Lazebny
Stacked Framework: Critique & Ways to Improve
Stacked
Many people follow the official Flutter channel, and there is a well-known rubric called Observable Flutter, which invites the most renowned contributors and open-source activists.
Recently, Dane Mackier, the author of Stacked, presented the library…
Many people follow the official Flutter channel, and there is a well-known rubric called Observable Flutter, which invites the most renowned contributors and open-source activists.
Recently, Dane Mackier, the author of Stacked, presented the library…
🔥4👍3
Mobile Tech
Photo
What will this code emit?
Anonymous Quiz
43%
Data received: my data
48%
Bad state: Stream has already been listened to.
8%
Data received: my data Data received: my data
Updated ThemeScope for sizzle starter. Simplified structure to be more predictable, by introducing ThemeMode and saving only seed color to shared preferences (not entire scheme)
https://github.com/hawkkiller/sizzle_starter/pull/247
https://github.com/hawkkiller/sizzle_starter/pull/247
GitHub
Updated theme scope and related units by hawkkiller · Pull Request #247 · hawkkiller/sizzle_starter
Now [ColorScheme] is not stored in SharedPreferences
[AppTheme] holds only seedColor and type
Type from [AppTheme] is converted to [ThemeMode] and passed to [MaterialApp]
Implemented DAO for [Share...
[AppTheme] holds only seedColor and type
Type from [AppTheme] is converted to [ThemeMode] and passed to [MaterialApp]
Implemented DAO for [Share...
❤🔥6❤2
As human beings, we can only control a small part of things, and it is natural that there are some things beyond our control. Do your best if you can influence the outcome. Otherwise, don't worry about it.
👍5
How to work with Clipboard in flutter?
There is a class Clipboard for these purposes in flutter:services.
It has two simple methods: setData and getData.
#tip #flutter #clipboard
There is a class Clipboard for these purposes in flutter:services.
It has two simple methods: setData and getData.
#tip #flutter #clipboard
👍9
Ian Hickson (Flutter Tech lead) talks about slivers:
https://www.youtube.com/watch?v=Mz3kHQxBjGg&ab_channel=GoogleforDevelopers
https://www.youtube.com/watch?v=Mz3kHQxBjGg&ab_channel=GoogleforDevelopers
YouTube
Slivers Explained - Making Dynamic Layouts (The Boring Flutter Development Show, Ep. 12)
Learn about Slivers and how you can create fancy scrolling actions and dynamic layouts. Join Filip and Ian Hickson, a Technical Lead for Flutter, for an advanced, specialized topic for Flutter. They cover everything from what Slivers are to how to use it.…
👍8
An iterator-like interface for stream values.
Allows more elegant and flexible solutions than default "for"
https://api.flutter.dev/flutter/dart-async/StreamIterator-class.html
#tip #dart #stream
Allows more elegant and flexible solutions than default "for"
https://api.flutter.dev/flutter/dart-async/StreamIterator-class.html
#tip #dart #stream
👍4
New article about initialization and injection of dependencies in Sizzle Starter:
https://sizzle.lazebny.io/essentials/dependencies/
https://sizzle.lazebny.io/essentials/dependencies/
🔥6
Effective documentation in Dart.
A simple, but cool rule from the Effective Dart documentation is:
• Begin documentation comments with a concise summary sentence.
As developers, we often get caught up in the complexities of our solutions, big or small, and lose sight of the broader picture - the reason for documenting.
The solution is uncomplicated: simply organise your thoughts and write a brief, descriptive sentence about what the method accomplishes overall. Following that, explain how the method is used and what it does.
Bonus points if you add section like "see more" that gives links to associated resources for more documentation.
A simple, but cool rule from the Effective Dart documentation is:
• Begin documentation comments with a concise summary sentence.
As developers, we often get caught up in the complexities of our solutions, big or small, and lose sight of the broader picture - the reason for documenting.
The solution is uncomplicated: simply organise your thoughts and write a brief, descriptive sentence about what the method accomplishes overall. Following that, explain how the method is used and what it does.
Bonus points if you add section like "see more" that gives links to associated resources for more documentation.
👍6
How many threads do Flutter requires?
Anonymous Quiz
55%
4 (Platform, UI, Raster, IO)
21%
3 (UI, Platform, IO)
16%
2 (UI, IO)
8%
2 (UI, Raster)
👍4
Declarative Status Bar Overlay Color in Flutter
Ever struggled with imperative SystemChrome API? See this short guide to make this process neat.
Ever struggled with imperative SystemChrome API? See this short guide to make this process neat.
Linkedin
Michael Lazebny on LinkedIn: #dart #flutter #declarative #appbar
Declarative Status Bar Overlay Color in Flutter
Have you ever struggled with switching between colors of the status/navigation bar on Android? There is an imperative solution to use SystemChrome.setSystemOverlayUiStyle, but there is an even better declarative…
Have you ever struggled with switching between colors of the status/navigation bar on Android? There is an imperative solution to use SystemChrome.setSystemOverlayUiStyle, but there is an even better declarative…
👍4