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
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
This media is not supported in your browser
VIEW IN TELEGRAM
Created a minimal example of custom AppBars using SliverPersistentHeaderDelegate.Take a look here https://github.com/hawkkiller/pageheader/blob/main/lib/page_header.dart

#flutter #flutterdev
πŸ‘13❀‍πŸ”₯2πŸ”₯2
Interesting post about showing yearly vs monthly prices first

TLDR: Showing monthly prices by default is better :)
πŸ‘12❀1
You can pin the toolbar to the top of your vscode window.

https://x.com/TahaTesser/status/1917094263000584605
πŸ”₯30❀1