Toolify
A collection of essential extensions and utilities for Flutter development, including BLoC, localization, navigation, dialogs, and more.
Features
- Color Extensions: Lighten or darken colors effortlessly.
- Date Formatting: Format dates with ease.
- Screen Size Utilities: Access screen size and padding information.
- String Formatting: Capitalize strings and extract initials.
- Validation Utilities: Validate emails, phone numbers, and passwords.
- Theme Utilities: Access theme data and text styles easily.
Getting Started
Add the following to your pubspec.yaml:
dependencies:
toolify: ^0.0.1
Then, run:
flutter pub get
Usage
Import the package and start using the extensions:
import 'package:toolify/toolify.dart';
Example: Color Extensions
final color = Colors.blue;
final lighterColor = color.lighter;
final darkerColor = color.darker;
Example: Date Formatting
final now = DateTime.now();
final formattedDate = now.ddMMyyyy; // Output: 17/10/2023
Example: Screen Size Utilities
final screenWidth = context.width;
final screenHeight = context.height;
Example: String Formatting
final name = "john doe";
final initials = name.initials; // Output: JD
final capitalized = name.capitalize; // Output: John doe
Example: Validation
final email = "test@example.com";
final isValidEmail = email.isEmail; // Output: true
Additional Information
- Repository: GitHub
- Issues: If you encounter any issues, please file them here.
- Contributions: Contributions are welcome! Please open a pull request on GitHub.
- License: Toolify is released under the MIT License.