Mobile Tech – Telegram
Mobile Tech
1.26K subscribers
107 photos
15 videos
6 files
154 links
Michael Lazebny's blog about @dart and @flutter
lazebny.io
Download Telegram
Planning today's tasks is an amazing productivity idea!
🔥8👍4
Install dev dependencies with ease!

#tip
👍9🏆1
👍3
Which variable changes after hot reload?
Anonymous Quiz
43%
Final changes
21%
Const changes
11%
Both change
25%
Nobody changes
🤯4🤩3😭31
Do you like such visuals? 👍👎
👍27👎1
A few months have passed since Dart 3.0 was released with its sealed classes and pattern matching.
At that time, I removed "freezed" from "sizzle_starter" and have been testing the new feature on various projects ever since.
Finally, I've decided to undo the "freezed" deletion :)

https://github.com/hawkkiller/sizzle_starter/pull/275
👍63🔥2
Often our desire is so much for the destination that we skip the journey.

We imagine life will drastically change once the goal is achieved (it won't)

Remember one simple truth: Life is about the journey, not the destination.

The same works for each field: be it a project or some other stuff.

Enjoy the #journey and live in the present moment.
👍104🔥3
Do you find self-development posts interesting? Like the one above.
Anonymous Poll
74%
Yes
26%
No
I will finish riverpod article by Friday :)
👍13❤‍🔥3🔥3
Update: The article is finished, I will do some formatting tomorrow and post it in the morning! (About 9-10 CET)
🔥9
The amount of visitors on my blog is growing comparing to previous months!
11👍3
How to improve Flutter performance?

I've gathered some valuable insights:

👉 Keep build functions pure - no logic inside; build method can be called 120 times per second

👉 Prefer slivers for complex lists - instead of nesting multiple lists

👉 Make use of ListView.builder and SliverChildBuilderDelegate. When items in the list are the same size - set fixed extent

👉 Wrap frequently repainted widgets in RepaintBoundary

👉 When working with heavy computations (cryptography, encryption/decryption) - use isolates

👉 Keep the number of network requests to a minimum

👉 Dispose of resources - focus nodes, controllers, listeners

👉 Use the right state management solution

👉 Optimise assets - limit use of png, jpg files; replace noscripts with icon fonts
👉 Set up Crashlytics or Sentry

👉 Don't get too involved with
third party libraries and plugins

👉 Use AnimatedBuilder's child field properly

👉 Test on real devices and look at the Profiler tab

Hope this was useful!
👍135🔥4
Mobile Tech
How to improve Flutter performance? I've gathered some valuable insights: 👉 Keep build functions pure - no logic inside; build method can be called 120 times per second 👉 Prefer slivers for complex lists - instead of nesting multiple lists 👉 Make use…
An interesting idea came to me:

Create a curated post on my blog where I will share the suggestions and best practices for flutter apps ( it will be updated each time I find something new )
👍22🔥5
How to ship apps faster 🚀

- Choose speed over quality
- Eliminate code reviews
- Don't do sprint planning
- Remove CI & Analyzer & Linter
- Ignore user feedback and testing
- Don't build a working MVP with minimal functionality
- Avoid regular team communication and updates
- Ignore documentation and code comments
- Ignore industry best practices and coding standards
- Do not periodically refactor to improve code quality.
- Leave a pile of TODOs after coding
- Don't think about backups
- Don't handle errors & exceptions

By doing all this, your app will definitely be shipped very quickly (maybe not where you planned though).
2😁2
I am writing an article on one of the most popular Stoic principles - the dichotomy of control.

After it, I will post a curated list of tips, best practices, and suggestions for flutter apps.
👍54
And one more thing I wanted to share: I decided to set myself a challenge:

Post on LinkedIn every day for a month.

I will tell you how many followers, impressions, likes, etc. I gained during that time.
👍4🔥4