DHIS2 FLUTTER UI


This Library support common components in Dhis2 used in Flutter

Table of Contents

About

DHIS2 Flutter UI is a library combine different UI experience used to in DHIS2 to deliver solution.It is consists of different form components ,common components and models that support dhis2 api data structure with reference to their metadata.

Supported Components

The following are list of supported components and models in the packages.

i. Input Components

list of input components

components props
SearchInput
RadioInputFieldContainer
BooleanInputFieldContainer
CheckBoxInputField
CoordinateInputFieldContainer
DateInputFieldContainer
InputClearIcon
NumericalInputFieldContainer
SelectInputField
TextInputFieldContainer
TrueOnlyInputFieldContainer
InputFieldContainer
PercentageInputFieldContainer
TimeInputFieldContainer
FormFieldInputIcon

ii. Generic Components

list of generic components

components props
CircularProcessLoader
MaterialCard
LineSeparator
CustomButton

iii. Models Supported

list of models

Models props
Application String id; String label ; String iconPath; List
InputField String id;String name; String? translatedName;String? description; String? translatedDescription; String valueType; Color? labelColor; Color? inputColor; Color? background; bool? renderAsRadio; bool? isReadOnly; bool? isPasswordField; bool? shouldCapitalize;bool? allowFuturePeriod; bool? disablePastPeriod; bool? hasError; int? minYear; int? maxYear;DateTime? minDate,DateTime? maxDate, int? numberOfMonth; String? suffixLabel;String? prefixLabel; String? hint; String? translatedHint; List
InputFieldOption String name; String? translatedName; dynamic code;

iv. Utils Supported

 List of Utils
Name Functions
FormValidator Validators.pattern('regex','message')
InputMask InputMask(pattern:'xxxx-xxx-xxx',separator:'-')

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

 git clone <github_repository_url>

🔧 Running the tests

Explain how to run the automated tests for this system.

Break down into end to end tests

Explain what these tests test and why

Give an example

And coding style tests

Explain what these tests test and why

Give an example

Libraries

dhis2_flutter_ui