Mobile Tech
1.14K subscribers
91 photos
8 videos
6 files
138 links
Michael Lazebny's blog about @dart and @flutter
lazebny.io
Download Telegram
Let's talk about dependency injection (DI) in the next article?

πŸ‘ / πŸ‘Ž
πŸ‘91❀3πŸ”₯3πŸ’―1
Forwarded from Oh, my Flutter [ENG] (Theodor)
A very cool presentation by Vyacheslav Egorov about the inner workings of Dart.

Using the example of two for-loops, he explains and demonstrates how to determine when the compiler generates suboptimal code and how to deal with it.

Additionally, the speaker showcases how to achieve Hot Reload by integrating Dart with SwiftUI and Jetpack Compose through FFI.

Highly recommended for viewing.

πŸ“Œ Presentation

#video
#ohmyteam
#ohmyfedukenukem
❀5
This media is not supported in your browser
VIEW IN TELEGRAM
🀟 We've recently developed a simple plugin for Flutter that allows you to create custom wraps for the widgets you want!

Grab it here
1πŸ”₯13πŸ‘5❀3
If you need to create instances of your objects, use Factory Pattern.

Extremely clean and scalable solution.

#tip
πŸ‘10πŸ₯΄7❀3πŸ‘Ž1
Article about dependency injection comes tomorrow! πŸ’ͺ
Please open Telegram to view this post
VIEW IN TELEGRAM
1πŸ‘13πŸ”₯13❀3
Great news! I have launched boosty, so if you had problems with payments, you can now try this method.

https://boosty.to/mlazebny
πŸ‘8❀3πŸ”₯3❀‍πŸ”₯1
Mobile Tech
Next Article Topic
So, next article will be about state management and business logic! 😎
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘19πŸ”₯3
😎 Exciting news! Audo, the #AI Career Assistant I've been pouring my heart into, has just gone live.

I'd love it if you could check it out, give it a try and consider showing your support with an upvote. Your feedback would mean the world to us!

https://www.producthunt.com/posts/audo
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘6❀3
Coming tomorrow
πŸ‘9πŸ”₯4❀3
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? πŸ‘
2πŸ‘15
Sizzle Starter now includes a robust analytics solution and an implementation for firebase.

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)
πŸ‘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/
πŸ”₯7