Team Gehem's Common Library for Flutter.
This is a project containing several common codes needed to develop flutter apps.
Features
- Using injecttable to implement DI.
- Including Logger Provider for Logger.
Getting started
- Add gcl_for_flutter to your dependencies
dependencies:
gcl_for_flutter:
git: https://github.com/terdong/gcl_for_flutter
- Call startGcl() in your main func before running the App.
void main() {
startGcl();
runApp(...);
}
Usage
- Using LoggerProvider
class Foo with LoggerProvider {
Foo() {
logi('this is an info log');
logd('this is a debug log');
loge('this is an error log');
}
}