A Collection of Flutter and Dart Tips and Tricks
SafeList
in Flutter and Dart
Iterable
in Flutter
StreamProvider
Disposal
Stream
Errors in Flutter
FlatThen
on Future
in Dart
Map
in Dart
StreamProvider
in Flutter Riverpod
Iterable<Widget>
in Flutter
StreamProvider
Yield in Riverpod
Future
Unwrap in Flutter
Iterable
in Dart
Map
in Dart
Map
in Dart
-
Operator on Iterable<T>
in Dart
Map
s in Dart
StreamQueue
in Flutter
Set
Comprehension in Dart
GridView
Items in Flutter
StreamController
Sink in Flutter
Iterable<T>
in Dart
+
Operator on Map
in Dart
Stream
Drain in Flutter
AsyncSnapshotBuilder
in Flutter
Clipboard
in Flutter
AsyncSnapshot
in Flutter
Symbol
in Dart
RadioListTile
in Flutter
ListView
in Flutter
FilterChip
in Flutter
LazyStream
in Flutter and Dart
FutureGroup
in Dart
Iterable<bool>
in Dart
Future<bool>
in Flutter
String
Data in Dart
Stream.startWith
in Flutter
AnnotatedRegion
in Flutter
Map
Equality in Dart
Iterable
to ListView
in Flutter
Object.toString()
in Dart
Iterable
Subscripts in Dart
useState
in Flutter Hooks
Iterable
+/- in Dart
EmptyOnError
in Dart
Stream<T>
Initial Value in Flutter
Double.normalize
in Dart
Iterable.compactMap
in Dart
useEffect
in Flutter Hooks
Isolate
Stream in Dart
ListTile
Shadow in Flutter
@useResult
in Dart
@mustCallSuper
in Dart
Object.hash
in Dart
AsyncSnapshot
to Widget
in Flutter
Map
Values in Dart
ListView
in Flutter
Object
in Dart
Map
in Dart
ValueNotifier
in Flutter
Future
Error Test in Flutter
Future
Errors in Dart
Future
Error Handling in Dart
Map<K,V>
in Dart
Stream<List<T>>
in Dart
ChangeNotifier
in Flutter
OrientationBuilder
in Flutter
CheckboxListTile
in Flutter
-
Operator on String
in Dart
Future<T>
List<T?>?
in Dart
List<T>
in Dart
List<List<T>>
in Dart
List<T>
in Dart
List<T>
in Dart
List<Uri>
in Dart
Stream
and StreamBuilder
in Flutter
StreamBuilder
and StreamController
in Dart
Comparable
in Dart
rethrow
ing Exceptions in Dart
mixin
s and JSON Parsing in Dart
mixin
s vs abstract class
es in Dart
const
Initializers
List<num>
in Dart
Click on any of the tips/tricks above to get to their source-code/infographic and demo videos (if applicable)
Copyright 2022 @ Vandad Nahavandipoor
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.