https://github.com/houssemeddinefadhli81/stunning-extensions
A lightweight Dart package providing handy extension methods for Strings, Dates, Numbers, and more, designed to make your code cleaner, shorter, and more readable.
https://github.com/houssemeddinefadhli81/stunning-extensions
clean-code dart dart-extensions dart-utils date-extensions developer-tools extensions flutter flutter-extensions productivity string-extensions utility-functions
Last synced: 3 months ago
JSON representation
A lightweight Dart package providing handy extension methods for Strings, Dates, Numbers, and more, designed to make your code cleaner, shorter, and more readable.
- Host: GitHub
- URL: https://github.com/houssemeddinefadhli81/stunning-extensions
- Owner: houssemeddinefadhli81
- License: mit
- Created: 2025-08-11T13:29:50.000Z (10 months ago)
- Default Branch: develop
- Last Pushed: 2025-08-11T15:13:24.000Z (10 months ago)
- Last Synced: 2025-10-23T01:05:10.848Z (7 months ago)
- Topics: clean-code, dart, dart-extensions, dart-utils, date-extensions, developer-tools, extensions, flutter, flutter-extensions, productivity, string-extensions, utility-functions
- Language: Dart
- Homepage:
- Size: 108 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# stunning_extensions
A lightweight Dart package providing a collection of stunning extension methods for **String**, **BuildContext**, and **Color** types.
These extensions help make your Flutter and Dart code cleaner, shorter, and more readable.
This package will grow over time as more utilities are added.
---
## Features
### String Extensions
- Check if a string is a valid color, integer, double, email, or password.
- Convert Arabic numerals to Western digits.
- Normalize strings to title case.
- Capitalize strings properly.
- Convert camelCase strings to Title Case.
- Convert strings to integer or double safely.
- Add dashes for empty strings.
- Clean unwanted or null-like strings.
- Extract DateTime from strings.
- Check for uppercase, lowercase, numbers, and symbols.
### BuildContext Extensions
- Detect if current theme is dark mode.
- Access context size, color scheme, text styles, and theme data.
- Determine text direction and RTL support.
### Color Extensions
- Determine if a color is close to black or a black variant with configurable threshold.
---
## Installation
Add this package to your `pubspec.yaml`:
```yaml
dependencies:
stunning_extensions: ^1.0.2