super_string_utils 1.1.1
super_string_utils: ^1.1.1 copied to clipboard
A production-ready collection of String extension methods for Dart and Flutter. Features include validation, transformation, extraction, masking, and fuzzy matching.
super_string_utils #
A productionβgrade Flutter utility engine delivering 80+ powerful String extensions and Fluent UI builders for modern Dart & Flutter development.
π Why super_string_utils? #
Dartβs native String class is powerful β but modern applications demand far more.
Validation. Hashing. Parsing. Extraction. Layout generation. UI building.
Developers repeatedly rewrite regex patterns, widget boilerplate, and transformation helpers.
super_string_utils eliminates that repetition.
It bridges the gap between raw strings and production-ready Flutter UI using a clean, fluent, and chainable architecture.
Built for serious Flutter developers who value speed, clarity, and scalability.
β¨ Core Features #
π‘ 80+ Extensions #
Comprehensive toolkit covering validation, transformation, extraction, security, analysis, and processing.
π¨ Fluent UI Builders #
Build Text, SnackBar, Row, and Column widgets directly from strings using a clean Builder pattern.
π Advanced Layout Engine #
Generate structured layouts from List<String> with per-index control:
expandAt()containerAt()paddingAt()flexibleAt()align()
π Security Suite #
Built-in hashing and encoding utilities:
- MD5
- SHA-256
- Base64
- Email masking
- String obfuscation
π Web & Network Utilities #
IPv4 validation, JSON detection, URL encoding/decoding, numeric parsing helpers.
π§ Text Analysis Tools #
Reading time estimation, word count, fuzzy matching (Levenshtein), word frequency.
π‘ Production Ready #
Fully null-safe, optimized, dependency-minimal, and designed for cross-platform Flutter apps.
π¦ Installation #
Add to your pubspec.yaml:
dependencies:
super_string_utils: ^1.1.0
Then run:
flutter pub get
π§ Basic Usage #
Import the package:
import 'package:super_string_utils/super_string_utils.dart';
π Validation Examples #
"user@domain.com".isEmail; // true
"192.168.1.1".isIpv4; // true
"StrongP@ss1".isStrongPassword; // true
"Hello π".containsEmoji; // true
β¨ Transformation Examples #
"hello world".toTitleCase; // "Hello World"
"Flutter & Dart".slugify; // "flutter-dart"
"123.45".toDoubleOrNull; // 123.45
"example".reverse; // "elpmaxe"
π Security & Encoding #
"password".md5Hash; // "5f4dcc3b..."
"data".toBase64; // "ZGF0YQ=="
"secret@mail.com".maskEmail; // "s*****@mail.com"
π Extraction & Processing #
"Visit https://pub.dev".extractUrls; // ["https://pub.dev"]
"Order #1234 cost $50".extractNumbers; // [1234, 50]
"Some text".wordCount; // 2
π¨ Fluent UI Builders #
Stop writing repetitive Flutter boilerplate.
π Text Builder #
"Super String".toTextBuilder
.size(20)
.weight(FontWeight.w600)
.color(Colors.indigo)
.padded(EdgeInsets.all(16))
.insideContainer(
color: Colors.grey[200],
borderRadius: BorderRadius.circular(8),
)
.center()
.build();
π SnackBar Builder #
"Action Success".toSnackbarBuilder
.floating()
.color(Colors.green)
.withCloseIcon()
.build();
π Advanced List Layout Engine #
Generate dynamic layouts from List<String> with per-index customization.
["Header", "Content Body", "Footer"]
.toTextColumn()
.spacing(12)
.crossAxis(CrossAxisAlignment.start)
.style(TextStyle(fontSize: 14))
.containerAt(0, color: Colors.blue)
.expandAt(1)
.align(TextAlign.right)
.build();
This enables flexible UI construction for menus, dashboards, and dynamic layouts.
π Feature Categories #
| Category | Includes Methods Like |
|---|---|
| Boolean | isBlank, isNumeric, isAlpha, isUrl |
| Transform | toTitleCase, slugify, reverse |
| Security | md5Hash, sha256Hash, maskEmail |
| Web | urlEncode, urlDecode, isIpv4 |
| Numeric | toDoubleOrNull, toIntOrNull |
| Analysis | wordCount, readingTime, fuzzyMatch |
| Processing | indent, unindent, removeWhitespace |
| Fluent UI | toTextBuilder, toSnackbarBuilder, toTextColumn |
π± Live Demo #
Explore the interactive showcase app:
π https://super-string-utils-example.vercel.app/
π€ Contributing #
Contributions are welcome.
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to your fork
- Open a Pull Request
Help grow the Flutter ecosystem.
β Support the Project
If this package saves you time or improves your workflow, consider supporting the project.
Your support helps maintain, improve, and grow the Flutter ecosystem π
π License #
Released under the MIT License.
Built with π for the Flutter community