Mobile Tech
1.23K subscribers
107 photos
13 videos
6 files
152 links
Michael Lazebny's blog about @dart and @flutter
lazebny.io
Download Telegram
Decided to create a site that will serve as a documentation for sizzle starter
🔥11
As human beings, we can only control a small part of things, and it is natural that there are some things beyond our control. Do your best if you can influence the outcome. Otherwise, don't worry about it.
👍5
How to work with Clipboard in flutter?

There is a class Clipboard for these purposes in flutter:services.

It has two simple methods: setData and getData.

#tip #flutter #clipboard
👍9
An iterator-like interface for stream values.

Allows more elegant and flexible solutions than default "for"

https://api.flutter.dev/flutter/dart-async/StreamIterator-class.html

#tip #dart #stream
👍4
New article about initialization and injection of dependencies in Sizzle Starter:

https://sizzle.lazebny.io/essentials/dependencies/
🔥6
Anniversary! Wohoo 🧨
🔥8🎉2
Effective documentation in Dart.

A simple, but cool rule from the Effective Dart documentation is:
• Begin documentation comments with a concise summary sentence.

As developers, we often get caught up in the complexities of our solutions, big or small, and lose sight of the broader picture - the reason for documenting.

The solution is uncomplicated: simply organise your thoughts and write a brief, descriptive sentence about what the method accomplishes overall. Following that, explain how the method is used and what it does.

Bonus points if you add section like "see more" that gives links to associated resources for more documentation.
👍6
👍4