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
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!
😒8❀‍πŸ”₯1πŸ‘1
Call for ideas!

Please write what you would like to see an article about
❀6πŸ”₯1
Removing factories from sizzle starter. They're adding too much boilerplate.

https://github.com/hawkkiller/sizzle_starter/pull/404
πŸ‘12😁3❀‍πŸ”₯1
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
πŸ‘6πŸ”₯5
Was thinking about using arrow or block functions. In the past I preferred arrow, but noticed that it makes code longer and less readable.

Compare. Which way do you prefer?
πŸ‘6
Let's celebrate 1,000 subscribers in this channel! πŸ₯³

As a present, writing an article about Slivers and Scrolling in Flutter :D
30πŸŽ‰23πŸ‘8
πŸ‘4❀‍πŸ”₯1
Sharing GraphQL lifehack
Here's how you can enable autocompletes for fields/fragments/queries:

1. Install graphql plugin (IntelliJ, VsCode)
2. Create graphql.config.yml in the root:

schema:
- "schema.graphqls"
documents:
- "**/*.graphql"


Enjoy autocompletes and analysis!
πŸ‘9❀1
Learn how scroll works in Flutter, the differences between scroll widgets, and how to build efficient layouts using slivers for best performance.

https://lazebny.io/flutter-slivers

#article #flutter #slivers
πŸ”₯8❀2
I created a simple but much more powerful alternative to Widgetbook, Storybook, and similar tools.

It automatically generates routes for GoRouter (supports deep links).

It also makes it very easy to create configurations, fields, etc., for customizing widgets.

This is just an exampleβ€”it will be improved over time and might eventually be added to sizzle starter or a separate package.

Github Link

#flutter
πŸ‘11πŸ₯°4πŸ”₯3❀1
Rust is an amazing language for FFI in Dart

All you need to do is define the extern C function, run cbindgen to generate a C header file, and then run ffigen, which generates safe Dart bindings.

Here is how I implemented upscale using Rust's "image" crate, which is 50x faster than dart's "image" package.

I think this is not the best solution and if you know how to improve it, it would be greatly appreciated! :)

#dart #rust #ffi
πŸ‘12❀3