Flutter Tips And Tricks Versions Save

A Collection of Flutter and Dart Tips and Tricks

355

1 year ago

If you have a Future<Iterable<E>> and want to use "then()" on it, you will end up with the Iterable<E> which you might need to map manually inside the "then()" function which results in a function call inside another function call, potentially making your code look more complicated than it should be. Using this extension on Future<Iterable<E>>, you can make this a lot easier to read at call-site. Let me show you how => https://github.com/vandadnp/flutter-tips-and-tricks/blob/main/tipsandtricks/flatthen-on-future-in-dart/flatthen-on-future-in-dart.md

354

1 year ago

Using this custom class in Flutter, you can construct rich texts with ease. Simply provide your text or links in an Iterable and this widget will render the rest for you. For the tip and its source code, visit https://github.com/vandadnp/flutter-tips-and-tricks/blob/main/tipsandtricks/rich-text-construction-in-flutter/rich-text-construction-in-flutter.md

353

1 year ago

Learn about Firestore Transactions and how you can perform multiple operations all in the same transaction with a timeout and number-of-retries here => https://github.com/vandadnp/flutter-tips-and-tricks/blob/main/tipsandtricks/firestore-transactions-in-flutter/firestore-transactions-in-flutter.md

352

1 year ago

351

1 year ago

350

1 year ago

349

1 year ago

348

1 year ago

347

1 year ago

346

1 year ago