flutter_utils_extensions 0.0.2
flutter_utils_extensions: ^0.0.2 copied to clipboard
A comprehensive set of handy Dart and Flutter extensions to make your code cleaner, shorter, and more expressive.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.0.1 Initial Release #
Added #
- BuildContext extensions:
- Access to form, navigator, overlay, scaffold, media query, brightness, platform checks, and widget size.
- Device type checks (phone, tablet, desktop).
- Added
showSnackBar()utility method.
- DateTime extensions:
- Checkers for time of day, expiry, and comparisons.
- Manipulators to add/subtract dates, months, years, etc.
- Conversions to various string formats and age calculation.
- Duration extension:
delay()method for simple async delays.
- Dynamic extensions:
nullOnDebug(),onlyOnDebug(), andmaybe()based on probability.
- Image extension:
- Easily create a
CircleAvatarwidget with an image.
- Easily create a
- Number extensions:
- Comparison helpers, random number generators, number formatters, and conversions to Duration.
- String extensions:
- Pattern matching, parsing to different cases (camelCase, snakeCase, etc.), and pretty printing (JSON, YAML, XML).
- Pattern checkers for emails, URLs, IP addresses, and more.
- Widget extensions:
- Helpers for padding, sizing, positioning, clipping, visibility, and touch management via
InkWellManager.
- Helpers for padding, sizing, positioning, clipping, visibility, and touch management via
Notes #
- First public release.
- Still evolving — contributions and feedback welcome!