Skip to content

Commit

Permalink
Merge pull request #119 from egovernments/flutter_component_0.0.2
Browse files Browse the repository at this point in the history
Flutter Component 0.0.2
  • Loading branch information
naveen-egov authored Oct 15, 2024
2 parents 90b0f96 + 5a138ca commit d69cf21
Show file tree
Hide file tree
Showing 445 changed files with 57,761 additions and 5,098 deletions.
5 changes: 5 additions & 0 deletions build/build-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,8 @@ config:
dockerfile: flutter/docker/Dockerfile
image-name: digit-ui-flutter

- name: builds/Digit-UI-Libraries/flutter/story-book-flutter
build:
- work-dir: flutter/digit-ui-components/storybook
dockerfile: flutter/docker/storybook/Dockerfile
image-name: story-book-flutter
70 changes: 35 additions & 35 deletions flutter/digit-ui-components/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,85 +142,85 @@ Digit UI Components includes various text input fields with optional features su

![textArea](https://github.com/egovernments/DIGIT-UI-LIBRARIES/assets/137176770/307cc5a0-87e2-4ca0-bf6e-cdc1d6b26741)

### Button Variants
Digit UI Components provides a variety of buttons with optional suffix and prefix icons, contributing to a cohesive and visually appealing UI.
### DigitButton Variants
Digit UI Components provides a variety of DigitButtons with optional suffix and prefix icons, contributing to a cohesive and visually appealing UI.

#### Primary Button
#### Primary DigitButton

Button(
label: 'Primary Button',
DigitButton(
label: 'Primary DigitButton',
onPressed: () {},
type: ButtonType.primary,
type: DigitButtonType.primary,
);

![primary-button](https://github.com/egovernments/DIGIT-UI-LIBRARIES/assets/137176770/2de133ff-f400-4612-a064-7989730b84a1)
![primary-DigitButton](https://github.com/egovernments/DIGIT-UI-LIBRARIES/assets/137176770/2de133ff-f400-4612-a064-7989730b84a1)

with Suffix Icon

Button(
DigitButton(
suffixIcon: Icons.add,
label: 'Primary Button',
label: 'Primary DigitButton',
onPressed: () {},
type: ButtonType.primary,
type: DigitButtonType.primary,
);

![primary-button-1](https://github.com/egovernments/DIGIT-UI-LIBRARIES/assets/137176770/6972ce4b-3bb2-4912-ae6b-784473093601)
![primary-DigitButton-1](https://github.com/egovernments/DIGIT-UI-LIBRARIES/assets/137176770/6972ce4b-3bb2-4912-ae6b-784473093601)

#### Secondary Button
#### Secondary DigitButton

Button(
label: 'secondary Button',
DigitButton(
label: 'secondary DigitButton',
onPressed: () {},
type: ButtonType.secondary,
type: DigitButtonType.secondary,
);

![secondary-button](https://github.com/egovernments/DIGIT-UI-LIBRARIES/assets/137176770/e07bbfaf-536a-4daf-bca1-4c8d9ff016d4)
![secondary-DigitButton](https://github.com/egovernments/DIGIT-UI-LIBRARIES/assets/137176770/e07bbfaf-536a-4daf-bca1-4c8d9ff016d4)

#### Tertiary Button
#### Tertiary DigitButton

Button(
label: 'tertiary Button',
DigitButton(
label: 'tertiary DigitButton',
onPressed: () {},
type: ButtonType.tertiary,
type: DigitButtonType.tertiary,
);

![tertiary-button](https://github.com/egovernments/DIGIT-UI-LIBRARIES/assets/137176770/b56da9f2-3806-4216-8bbd-d902cc4f94fc)
![tertiary-DigitButton](https://github.com/egovernments/DIGIT-UI-LIBRARIES/assets/137176770/b56da9f2-3806-4216-8bbd-d902cc4f94fc)

#### Link

Button(
DigitButton(
label: 'link',
onPressed: () {},
type: ButtonType.link,
type: DigitButtonType.link,
);

![link](https://github.com/egovernments/DIGIT-UI-LIBRARIES/assets/137176770/5424ff0e-142a-4482-9559-bfb83d0ad201)

### Radio Buttons
The Radio Buttons component in Digit UI Components empowers users to make a single selection from a list of options. This intuitive interface provides a smooth user experience with hover and mouse-down effects.
### Radio DigitButtons
The Radio DigitButtons component in Digit UI Components empowers users to make a single selection from a list of options. This intuitive interface provides a smooth user experience with hover and mouse-down effects.

RadioList(
onChanged: (value) {},
groupValue: '1',
radioButtons: [
RadioButtonModel(code: '1',name: 'One',),
RadioButtonModel(code: '2', name: 'Two'),
RadioButtonModel(code: '3', name: 'Three'),
radioDigitButtons: [
RadioDigitButtonModel(code: '1',name: 'One',),
RadioDigitButtonModel(code: '2', name: 'Two'),
RadioDigitButtonModel(code: '3', name: 'Three'),
],
);

![radio](https://github.com/egovernments/DIGIT-UI-LIBRARIES/assets/137176770/23bd8fc9-1c44-485c-861d-cd443cc43661)

### Toggle Buttons
The Toggle Buttons component in Digit UI Components presents a list of interactive toggle buttons, providing users with the ability to select a option. Each button is equipped with callbacks for both mouse-down and hover effects, ensuring a responsive and engaging user interface.
### Toggle DigitButtons
The Toggle DigitButtons component in Digit UI Components presents a list of interactive toggle DigitButtons, providing users with the ability to select a option. Each DigitButton is equipped with callbacks for both mouse-down and hover effects, ensuring a responsive and engaging user interface.

ToggleList(
toggleButtons: [
ToggleButtonModel(
toggleDigitButtons: [
ToggleDigitButtonModel(
name: 'Toggle 1', key: 'key1', onSelected: (value) {}),
ToggleButtonModel(
ToggleDigitButtonModel(
name: 'Toggle 2', key: 'key2', onSelected: (value) {}),
ToggleButtonModel(
ToggleDigitButtonModel(
name: 'Toggle 3', key: 'key3', onSelected: (value) {}),
],
selectedIndex: 1,
Expand Down
47 changes: 33 additions & 14 deletions flutter/digit-ui-components/digit_components/.flutter-plugins
Original file line number Diff line number Diff line change
@@ -1,20 +1,39 @@
# This is a generated file; do not edit or check into version control.
flutter_keyboard_visibility=/home/admin1/.pub-cache/hosted/pub.dev/flutter_keyboard_visibility-5.4.1/
flutter_keyboard_visibility_linux=/home/admin1/.pub-cache/hosted/pub.dev/flutter_keyboard_visibility_linux-1.0.0/
flutter_keyboard_visibility_macos=/home/admin1/.pub-cache/hosted/pub.dev/flutter_keyboard_visibility_macos-1.0.0/
flutter_keyboard_visibility_web=/home/admin1/.pub-cache/hosted/pub.dev/flutter_keyboard_visibility_web-2.0.0/
flutter_keyboard_visibility_windows=/home/admin1/.pub-cache/hosted/pub.dev/flutter_keyboard_visibility_windows-1.0.0/
fluttertoast=/home/admin1/.pub-cache/hosted/pub.dev/fluttertoast-8.2.4/
camera=/home/admin1/.pub-cache/hosted/pub.dev/camera-0.10.6/
camera_android=/home/admin1/.pub-cache/hosted/pub.dev/camera_android-0.10.9+2/
camera_avfoundation=/home/admin1/.pub-cache/hosted/pub.dev/camera_avfoundation-0.9.17+3/
camera_web=/home/admin1/.pub-cache/hosted/pub.dev/camera_web-0.3.4/
file_picker=/home/admin1/.pub-cache/hosted/pub.dev/file_picker-8.0.0+1/
file_selector_linux=/home/admin1/.pub-cache/hosted/pub.dev/file_selector_linux-0.9.2+1/
file_selector_macos=/home/admin1/.pub-cache/hosted/pub.dev/file_selector_macos-0.9.4/
file_selector_windows=/home/admin1/.pub-cache/hosted/pub.dev/file_selector_windows-0.9.3+2/
flutter_dropzone=/home/admin1/.pub-cache/hosted/pub.dev/flutter_dropzone-3.0.7/
flutter_dropzone_web=/home/admin1/.pub-cache/hosted/pub.dev/flutter_dropzone_web-3.0.13/
flutter_plugin_android_lifecycle=/home/admin1/.pub-cache/hosted/pub.dev/flutter_plugin_android_lifecycle-2.0.19/
fluttertoast=/home/admin1/.pub-cache/hosted/pub.dev/fluttertoast-8.2.5/
geolocator=/home/admin1/.pub-cache/hosted/pub.dev/geolocator-10.1.1/
geolocator_android=/home/admin1/.pub-cache/hosted/pub.dev/geolocator_android-4.5.2/
geolocator_apple=/home/admin1/.pub-cache/hosted/pub.dev/geolocator_apple-2.3.6/
geolocator_android=/home/admin1/.pub-cache/hosted/pub.dev/geolocator_android-4.6.1/
geolocator_apple=/home/admin1/.pub-cache/hosted/pub.dev/geolocator_apple-2.3.7/
geolocator_web=/home/admin1/.pub-cache/hosted/pub.dev/geolocator_web-2.2.1/
geolocator_windows=/home/admin1/.pub-cache/hosted/pub.dev/geolocator_windows-0.2.2/
geolocator_windows=/home/admin1/.pub-cache/hosted/pub.dev/geolocator_windows-0.2.3/
image_picker=/home/admin1/.pub-cache/hosted/pub.dev/image_picker-1.0.8/
image_picker_android=/home/admin1/.pub-cache/hosted/pub.dev/image_picker_android-0.8.9+6/
image_picker_for_web=/home/admin1/.pub-cache/hosted/pub.dev/image_picker_for_web-3.0.2/
image_picker_ios=/home/admin1/.pub-cache/hosted/pub.dev/image_picker_ios-0.8.9+2/
image_picker_linux=/home/admin1/.pub-cache/hosted/pub.dev/image_picker_linux-0.2.1+1/
image_picker_macos=/home/admin1/.pub-cache/hosted/pub.dev/image_picker_macos-0.2.1+1/
image_picker_windows=/home/admin1/.pub-cache/hosted/pub.dev/image_picker_windows-0.2.1+1/
location=/home/admin1/.pub-cache/hosted/pub.dev/location-5.0.3/
location_web=/home/admin1/.pub-cache/hosted/pub.dev/location_web-4.2.0/
package_info_plus=/home/admin1/.pub-cache/hosted/pub.dev/package_info_plus-4.2.0/
path_provider=/home/admin1/.pub-cache/hosted/pub.dev/path_provider-2.1.2/
path_provider_android=/home/admin1/.pub-cache/hosted/pub.dev/path_provider_android-2.2.2/
path_provider_foundation=/home/admin1/.pub-cache/hosted/pub.dev/path_provider_foundation-2.3.2/
path_provider=/home/admin1/.pub-cache/hosted/pub.dev/path_provider-2.1.4/
path_provider_android=/home/admin1/.pub-cache/hosted/pub.dev/path_provider_android-2.2.4/
path_provider_foundation=/home/admin1/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.0/
path_provider_linux=/home/admin1/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1/
path_provider_windows=/home/admin1/.pub-cache/hosted/pub.dev/path_provider_windows-2.2.1/
path_provider_windows=/home/admin1/.pub-cache/hosted/pub.dev/path_provider_windows-2.3.0/
url_launcher=/home/admin1/.pub-cache/hosted/pub.dev/url_launcher-6.3.0/
url_launcher_android=/home/admin1/.pub-cache/hosted/pub.dev/url_launcher_android-6.3.2/
url_launcher_ios=/home/admin1/.pub-cache/hosted/pub.dev/url_launcher_ios-6.3.1/
url_launcher_linux=/home/admin1/.pub-cache/hosted/pub.dev/url_launcher_linux-3.1.1/
url_launcher_macos=/home/admin1/.pub-cache/hosted/pub.dev/url_launcher_macos-3.2.0/
url_launcher_web=/home/admin1/.pub-cache/hosted/pub.dev/url_launcher_web-2.2.3/
url_launcher_windows=/home/admin1/.pub-cache/hosted/pub.dev/url_launcher_windows-3.1.2/
Loading

0 comments on commit d69cf21

Please sign in to comment.