Mobile Tech
1.11K subscribers
91 photos
8 videos
6 files
136 links
Michael Lazebny's blog about @dart and @flutter
lazebny.io
Download Telegram
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?
Let's celebrate 1,000 subscribers in this channel! 🥳

As a present, writing an article about Slivers and Scrolling in Flutter :D
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!
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
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
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
Interesting post about showing yearly vs monthly prices first

TLDR: Showing monthly prices by default is better :)
You can pin the toolbar to the top of your vscode window.

https://x.com/TahaTesser/status/1917094263000584605
The next article will be about building efficient CI pipelines for large flutter projects
Happy to share that Sizzle Starter is now updated to Flutter 3.32.0

Together with this update, I have landed a few important ones:
- Now app (root) project is located in "app" folder. This stimulates modularization principles
- flutter gen-l10n is not used anymore for localizations in favor of intl_utils (from Localizely)
- some other minor changes..

https://github.com/hawkkiller/sizzle_starter
Mobile Tech
Happy to share that Sizzle Starter is now updated to Flutter 3.32.0 Together with this update, I have landed a few important ones: - Now app (root) project is located in "app" folder. This stimulates modularization principles - flutter gen-l10n is not used…
Following updates might be focused on modularization practices, such as moving features to feature-modules and shared code into corresponding packages, so they are more reusable.
If you want to make your VS Code indentation a bit more beautiful for #Flutter widgets, set "dart.previewFlutterUiGuides" to true

If I'm not mistaken, the same thing exists in IDEA :)