HCD Flutter is a proprietary Flutter package that provides a collection of utility classes, extensions, and widgets to streamline Flutter development.
- Utility Classes: AppLogger, DialogUtils, and more.
- Extensions: String, DateTime, Color, Number, and Iterable extensions.
- Widgets: Multi-stream BLoC widgets and more.
- Models: Base model and example model with Freezed integration.
- Localization: AppLocalizations for easy internationalization.
This package is proprietary and not licensed for public use. It is intended for internal use only within authorized projects.
Add the following to your pubspec.yaml file:
dependencies:
hcd:
git:
url: https://github.com/hafencity-dev/hcd_flutter.git
ref: main # or specify a tag/commitThen run:
flutter pub get
import 'package:hcd/hcd.dart';- Using AppLogger:
await AppLogger.initialize();
AppLogger.info('This is an info message');- Using String extensions:
String text = 'hello world';
print(text.capitalize()); // Output: Hello world- Using Color extensions:
Color color = Colors.blue;
Color lighterBlue = color.lighten();- Using DateTime extensions:
DateTime now = DateTime.now();
print(now.format(format: 'dd/MM/yyyy'));This package is not licensed for public use. All rights are reserved.