dhis2_dart_utils 1.1.26
dhis2_dart_utils: ^1.1.26 copied to clipboard
A collection of data models, constants and utilities used to build a DHIS2 app in dart.
DHIS2 DART UTILITIES
A collection of data models, constants and utility functions used to build a DHIS2 app in dart.
Contents: #
Features #
This util library offers the following features:
- Generator function for DHIS2 uid.
- Utilities, data models and constants for DHIS2 periods.
- DHIS2 Program indicator engine.
- DHIS2 Program rule engine.
- DHIS2 Program HTTP service.
Getting Started #
The package can be installed using following alternatives:
- For a dart project use the command:
dart pub add dhis2_dart_utils
copied to clipboard
- For a flutter project use the command:
flutter pub add dhis2_dart_utils
copied to clipboard
- Adding it directly on the
pubspec.yaml
dependencies and runningflutter pug get
ordart pub get
.
dependencies:
dhis2_dart_utils: <version>
copied to clipboard
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
git clone <github_repository_url>
copied to clipboard
After getting a copy of the project source code, the following command will download all the project dependencies ready for testing, running and deploying the package
cd <repository_name>
dart pub get
copied to clipboard
Examples can be run from the examples folder using the dart run
commands.
Tests can be run on the project folder by the command
dart test
copied to clipboard
Usage #
import 'package:dhis2_dart_utils/dhis2_dart_utils.dart';
copied to clipboard
For more examples, click here!