- Canonicalized Maps in Dart
- Dart Object Description Using Reflection
- Unwrapping Multiple Optionals in Flutter & Dart
SafeList
in Flutter and Dart- Optional Iterable First Element in Dart
- Finding and Converting JSON Values in Dart
- Identical Objects in Dart
- Breaking Strings in Dart
FlatThen
onFuture
in Dart- Recursive Search in
Map
in Dart - Spreading Custom Classes in Dart
- Null-Aware Infix Operators in Dart
- Custom Integer to String in Dart
- Grouping
Iterable
in Dart - Nested Generators in Dart
- Default Value for Optionals in Dart
- CompactMap on
Map
in Dart - Recursive Flatten of List in Dart
- Splice in Dart
- Where Clause on
Map
in Dart - Unawaited and Ignore in Dart
- Key and Value Mapping in Dart
-
Operator onIterable<T>
in Dart- Merging
Map
s in Dart - Sorting Generics in Dart
- Map with Index in Dart
Set
Comprehension in Dart- Cherry-Picking Functions in Dart
- Integer Range Extension in Dart
- Static vs Factory Constructors in Dart
- Result Type in Dart
- Enum Members in Dart 2.17
- Constructor vs Factory Constructor in Dart
- Unwrapping Streams in Dart
- Appending to
Iterable<T>
in Dart - Inline Synchronous Generators in Dart
+
Operator onMap
in Dart- Default Parameter Values in Dart
- Generic Object Map in Dart
Symbol
in Dart- Multi-field Object Comparison in Dart
- Hide Keyword in Dart
- Show Keyword in Dart
- URL Data in Dart
- Restartable Timer in Dart
LazyStream
in Flutter and DartFutureGroup
in Dart- Flatten
Iterable<bool>
in Dart - Custom Lists in Dart
- Optional Chaining in Dart
- Get
String
Data in Dart - Optional Functions in Dart
- Unordered
Map
Equality in Dart - Fast
Object.toString()
in Dart Iterable
Subscripts in Dart- Folding Iterables in Dart
- Custom Iterables in Dart
- Class Clusters in Dart
Iterable
+/- in Dart- Periodic Streams in Dart
EmptyOnError
in DartDouble.normalize
in DartIterable.compactMap
in Dart- Merging Streams in Dart
Isolate
Stream in Dart- Constructors on Abstract Classes in Dart
@useResult
in Dart@mustCallSuper
in DartObject.hash
in Dart- Random Iterable Value in Dart
- Unique
Map
Values in Dart - Extending Functions in Dart
- Immutable Classes in Dart
- List Equality Ignoring Ordering in Dart
- Shorten GitHub URLs in Dart
- Map Equality in Dart
- Unique Maps in Dart
- Title on
Object
in Dart - Filter on
Map
in Dart - Type Alias in Dart
- Object to Integer in Dart
- Covariant in Dart
- Custom Errors in Streams in Dart
- Throw Enums in Dart
- Generic URL Retrieval in Dart
- Handle Multiple
Future
Errors in Dart Future
Error Handling in Dart- Waiting in Dart
- Compact Map on
Map<K,V>
in Dart - Query Parameters in Dart
- Filter on
Stream<List<T>>
in Dart - FlatMap in Dart
- Integer to Binary in Dart
- Split String by Length in Dart
-
Operator onString
in Dart- Dart Progress for
Future<T>
- Check if Website is Up or Down in Dart
- Post Messages to Slack with Dart
- Unwrap
List<T?>?
in Dart - Detect Redirects in Dart
- Rotating
List<T>
in Dart - Hashable Mixins in Dart
- Searching
List<List<T>>
in Dart - Cloning Objects in Dart
- Flattening Lists in Dart
- Managing Duplicates in
List<T>
in Dart - FlatMap and CompactMap in Dart
- Equality of
List<T>
in Dart - Constants in Dart
- YouTube Ad Remover in Dart
- Sort Descriptors in Dart
- Content-Length of
List<Uri>
in Dart - Recursive Dot Notation on Maps in Dart
- Doubly Linked Lists in Dart
- Custom Stream Transformers in Dart
- Expanding Stream Elements in Dart
- Consume Streams for a Duration in Dart
- Shortening URLs in Dart
- Generically Convert Anything to Int in Dart
- Validating URL Certificates in Dart
- Network Image Size in Dart
- JSON HTTP Requests in Dart
- URL Timeouts in Dart
- Detecting URL File Types in Dart
- Paginated Lists in Dart
- Requesting DELETE on APIs in Dart
- Infinite Arrays in Dart
- Convert Enums to Strings in Dart
- Calculating Median of Lists in Dart
- Generic Functions with Reduce in Dart
- Data Streams Over HTTP/HTTPs in Dart
- Catching Nonexistent Accessors or Methods in Dart
- Using Expando in Dart
- Implementing Custom Maps in Dart
- Dynamically Calling Functions in Dart
- Factory Constructors in Dart
- Calculating the Sum of List Items in Dart
- Removing Duplicate Strings in Lists in Dart (Case-Insensitive)
- Implementing Range in Dart
- Converting Lists to Maps in Dart
- Implementing Hashable in Dart
- Random Name Generator in Dart
- Capturing Stack Traces in Dart Exceptions
- Removing Duplicates from Lists in Dart
- Optional Spread Operator in Dart
- Calling Optional Functions in Dart
- Odd-Even Sort in Dart
- Implementing Zip and Tuples in Dart
- Swapping Values in Lists with XOR in Dart
- Waiting for Multiple Futures in Dart
- Using Queues as Stacks in Dart
- Custom Iterators in Dart
- Iterables as Ranges + Transform in Dart
- Errors vs Exceptions in Dart
- Custom Annotations in Dart
- Classes as Enums in Dart
- Spread Operator in Collection Literals in Dart
StreamBuilder
andStreamController
in Dart- Almost Equal in Dart
- Enum Associated Values in Dart
- Implementing
Comparable
in Dart - Implementing Custom Integer Types in Dart
- Custom Subscripts in Dart
- Dart List Enumeration with Index
- Applying Mixins to Other Mixins in Dart
- Parameter Types in Dart
- Custom Exceptions in Dart
rethrow
ing Exceptions in Dartmixin
s and JSON Parsing in Dartmixin
s vsabstract class
es in Dart- Generic Type Aliases in Dart
- Callable Classes in Dart
- Synchronous Generators in Dart
- Implicit Interfaces in Dart
- Dart's
const
Initializers - Downloading and Parsing JSON in Dart
- Dart Initializer List
- Checking for Type Equality in Dart Lists
- Type Promotion with Sound Null Safety in Dart
- Extract Minimum and Maximum Values in
List<num>
in Dart - Functions as First Class Citizens in Dart
- Extending Functions in Flutter
- Stream Timeout Between Events in Flutter
- Colorful Logs in Flutter
- Prefer
Iterable
in Flutter - Recoveringg Stream Errors in Flutter
- Figma Text Strokes in Flutter
- Universal App Links in Flutter
- Reusable Lottie Animations in Flutter
- Presenting Streams in Flutter
- Presenting Futures in Flutter
- Absorb
Stream
Errors in Flutter - Rich Text Construction in Flutter
- Firestore Transactions in Flutter
- Image Aspect Ratio in Flutter
- Debouncing Streams in Flutter
- Reusable Alert Dialogs in Flutter
- Row with Spacing in Flutter
- Spreading
Iterable<Widget>
in Flutter Future
Unwrap in Flutter- HTML Colors in Flutter
- Generic Centering of Widgets in Flutter
- iOS Context Menu in Flutter
- Async API Cleanup in Flutter
- Label Text in Flutter
StreamQueue
in Flutter- Enum Annotations in Flutter
- Animating FAB in Flutter
- Image Gallery in Flutter
- Stretching
GridView
Items in Flutter - Email Drag and Drop in Flutter
StreamController
Sink in Flutter- Functions as First Class Citizens in Flutter
Stream
Drain in Flutter- Reusable Separators in Flutter
AsyncSnapshotBuilder
in FlutterClipboard
in Flutter- RequireData in
AsyncSnapshot
in Flutter RadioListTile
in Flutter- Infinite
ListView
in Flutter FilterChip
in Flutter- Function Pointers in Flutter
- Expectation Extensions in Flutter
- Delay Extension in Flutter
- Firebase Batch Operations in Flutter
- Cherry Pick Provider Changes in Flutter
- Observe Network Connection in Flutter
- Cancelable APIs in Flutter
- Asset Data in Flutter
- API Caching in Flutter
- Caching Temp Files in Flutter
- MapList in Flutter
Future<bool>
in Flutter- Async Bloc Init in Flutter
- Firebase Auth Errors in Flutter
- Debug Strings in Flutter
- Keyboard Appearance in Flutter
Stream.startWith
in FlutterAnnotatedRegion
in FlutterIterable
toListView
in Flutter- Password Mask in Flutter
- Copying Bloc State in Flutter
useState
in Flutter HooksStream<T>
Initial Value in Flutter- Hide Sensitive Information in Flutter
useEffect
in Flutter Hooks- Network Image Retry in Flutter
- Reusable APIs in Flutter
ListTile
Shadow in Flutter- Transparent AppBar in Flutter
- Expanded Equally in Flutter
- Hardcoded Strings in Flutter
- Manually Scroll in List View in Flutter
AsyncSnapshot
toWidget
in Flutter- Breadcrumbs in Flutter
- Smart Quotes/Dashes in Flutter
- Haptic Feedback in Flutter
- Localization Delegates in Flutter
- Paginated
ListView
in Flutter - Card Widget in Flutter
- Time Picker in Flutter
- Throttled Print in Flutter
- Raw Auto Complete in Flutter
- Compute in Flutter
ValueNotifier
in Flutter- Image Opacity in Flutter
- Shake Animation in Flutter
Future
Error Test in Flutter- Custom Error Widget in Flutter
- String to Toast in Flutter
- Loading Dialog in Flutter
- Multiple Gradients in Container in Flutter
- Generic Route Arguments in Flutter
- Generic Dialog in Flutter
- GitHub API in Flutter
ChangeNotifier
in Flutter- Refresh Indicator in Flutter
OrientationBuilder
in Flutter- Linear Gradient in Flutter
- Bloc Text Editing Controller in Flutter
- Blurred TabBar in Flutter
- Play YouTube in Flutter
- ListView Background in Flutter
- Image Tint in Flutter
- SlideTransition in Flutter
- Expansion Panels and Lists in Flutter
- Complete CRUD App in Flutter
- SQLite Storage in Flutter
- Circular Progress with Percentage in Flutter
- Opening URLs in Flutter
- Commodore 64 Screen in Flutter
- Animated Lists in Flutter
CheckboxListTile
in Flutter- Move Widget Shadows with Animation
- Gallery with Blurred Backgrounds in Flutter
- Custom Path Clippers in Flutter
- Frost Effect on Images in Flutter
- Custom Clippers in Flutter
- Section Titles on ListView in Flutter
- Circular Progress in Flutter
- Displaying Scroll Wheels in Flutter
- Avoiding UI Jitters When Switching Widgets in Flutter
- Proportional Constraints in Flutter
- Displaying Cupertino Action Sheets in Flutter
- Displaying SnackBars in Flutter
- Custom Tab Bar Using ToggleButtons in Flutter
- Flutter Tips and Tricks in Terminal
- Color Filters in Flutter
- Displaying Scrollable Bottom Sheets in Flutter
- Fade Between Widgets in Flutter
- User Sortable Columns and Tables in Flutter
- Allow User Selection of Text in Flutter
- Placing Constraints on Widgets in Flutter
- Animating Position Changes in Flutter
- Transitioning Between Widgets in Flutter
- Reordering Items Inside List Views in Flutter
- LimitedBox Widget as ListView Items in Flutter
- Displaying Popup Menus in Flutter
- Implementing Drag and Drop in Flutter
- Dismissing List Items in Flutter
- Animating Widgets with Ease in Flutter
- Displaying Tool Tips in Flutter
- Displaying Assorted Widgets Inside TableView in Flutter
- Page Indicator with Page View in Flutter
- Animating and Moving a Floating Action Button in Flutter
- Fading Network Image Widget in Flutter
- Transparent Alert Dialogs in Flutter
- Animated Icons in Flutter
- Custom Scroll Views in Flutter
- Parallax App Bar in Flutter
- Animated Containers in Flutter
- Hiding Widgets in Flutter
- Simple Opacity Animation in Flutter
- Vignette Widget in Flutter
- Drop Down Button Configuration and Usage in Flutter
- Expandable List Items in Flutter
- Infinite Scrolling in Flutter
- Custom Color Picker Component in Flutter
- Displaying and Reacting to Switches in Flutter
- Displaying Bottom Bars in Flutter
- Displaying Buttons on AppBar in Flutter
- Displaying Bottom Sheets in Flutter
- Converting Enums to Radio Buttons in Flutter
- Check Existence of Websites in Flutter
- Images inside AlertDialog in Flutter
- Returning Values from AlertDialog in Flutter
- Simple Grid View in Flutter
- Rendering Bullet Points in Flutter
- Retrying Futures in Flutter
- Containers as ClipOvals in Flutter
- Rich Texts in Flutter
- Wrapping Widgets in Flutter
- Sweep Gradients in Flutter
Stream
andStreamBuilder
in Flutter- Blur Effect in Flutter
- Replacing Text in TextField in Flutter
- Aspect Ratio in Flutter
- Zoom and Pan in Flutter
- Resizing Images in Flutter to Fit Screen Height
- Validating URLs in Flutter
- FrameBuilder for Network Images in Flutter
- Adding Shadow to Icons in Flutter
- Passing Back Data From a Screen to the Previous One in Flutter
- Flinging an Animation in Flutter
- Fade Animations in Flutter
- Throttling User Input in Flutter
- Censoring TextFields in Flutter
- Customizing TextButton in Flutter
- Multiline TextFields in Flutter
- Filtering TextField Input in Flutter
- Focusing Manually on TextFields in Flutter
- Drawing Shapes in Flutter
- Riverpod
StreamProvider
Disposal StreamProvider
in Flutter Riverpod- Immutable Maps in Flutter Riverpod
StreamProvider
Yield in Riverpod- Generic Watch and Filter in Riverpod
- Faking APIs with Riverpod
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.