Skip to content

Releases: vandadnp/flutter-tips-and-tricks

365 - Recoveringg Stream Errors in Flutter

10 Nov 04:07
d2ed753
Compare
Choose a tag to compare

Use a Stream transformer to send a value down your stream in case of an exception/error. Here is an example of us recovering a stream with the value of "Baz" upon error https://github.com/vandadnp/flutter-tips-and-tricks/blob/main/tipsandtricks/recovering-stream-errors-in-flutter/recovering-stream-errors-in-flutter.md

364 - Riverpod StreamProvider Disposal

30 Oct 06:33
8eec768
Compare
Choose a tag to compare

Using the .onDispose callback of a StreamProvider's ref in Riverpod you can take care of disposal of your StreamController => https://github.com/vandadnp/flutter-tips-and-tricks/blob/main/tipsandtricks/riverpod-streamprovider-disposal/riverpod-streamprovider-disposal.md

363 - Figma Text Strokes in Flutter

22 Oct 05:50
a909985
Compare
Choose a tag to compare

Using a Stack together with 2 Text widgets you can render a stroke around your texts. Check this handy tip out => https://github.com/vandadnp/flutter-tips-and-tricks/blob/main/tipsandtricks/figma-text-strokes-in-flutter/figma-text-strokes-in-flutter.md

362 - Universal App Links in Flutter

16 Oct 05:51
8ffd4ad
Compare
Choose a tag to compare

If you want to link to an application that is in the App Store or Google Play Store, you need to have one native and one non-native link. The native link for iOS is used when the device running your app is an iOS device and non native iOS link gets opened if your Flutter app is running on an Android device but is trying to open a link to App Store for an iOS app. The same thing is true for Android devices. With this approach, you can have one UniversalApp that solves this for you in one easy to use class => https://github.com/vandadnp/flutter-tips-and-tricks/blob/main/tipsandtricks/universal-app-links-in-flutter/universal-app-links-in-flutter.md

361 - Reusable Lottie Animations in Flutter

12 Oct 04:58
a2c9196
Compare
Choose a tag to compare

360 - Identical Objects in Dart

08 Oct 05:13
b9ca59a
Compare
Choose a tag to compare

Learn how to use the identical() function in Dart to compare if two instances of an object point to the same object in memory. Read the tip here => https://github.com/vandadnp/flutter-tips-and-tricks/blob/main/tipsandtricks/identical-objects-in-dart/identical-objects-in-dart.md

359 - Breaking Strings in Dart

05 Oct 04:47
30cc068
Compare
Choose a tag to compare
Add files via upload

358 - Presenting Streams in Flutter

28 Sep 02:40
e1f4e1a
Compare
Choose a tag to compare

Just like how we presented futures in the previous tip, by implementing a present() function on AsyncSnapshot, you can easily make your Stream instances presentable in a reusable-way. The same AsyncSnapshot extension is used for presenting futures and streams. Let me show you how => https://github.com/vandadnp/flutter-tips-and-tricks/blob/main/tipsandtricks/presenting-streams-in-flutter/presenting-streams-in-flutter.md

357 - Presenting Futures in Flutter

25 Sep 03:19
0227faf
Compare
Choose a tag to compare

By implementing a present() function on AsyncSnapshot, you can easily make your Future instances presentable in a reusable-way. Let me show you how => https://github.com/vandadnp/flutter-tips-and-tricks/blob/main/tipsandtricks/presenting-futures-in-flutter/presenting-futures-in-flutter.md

356 - Absorb Stream Errors in Flutter

20 Sep 03:25
f604f3a
Compare
Choose a tag to compare

You can use this trick to absorb errors that are thrown down a stream. Your stream will then simply close when an exception is detected. https://github.com/vandadnp/flutter-tips-and-tricks/blob/main/tipsandtricks/absorb-stream-errors-in-flutter/absorb-stream-errors-in-flutter.md