Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
The Toggle Buttons component in DIGIT UI presents a list of interactive toggle buttons, providing users with the ability to select an option. Each button is equipped with callbacks for both mouse-down and hover effects, ensuring a responsive and engaging user interface.
The widget contains the following required parameters:
Below are some additional parameters:
Usages
Add the following lines of code:
DIGIT UI components provide a variety of buttons with optional suffix and prefix icons, contributing to a cohesive and visually appealing UI.
Button Type
Primary: Represents the primary action. It features a prominent colour, and its appearance can change on hover or click.
Secondary: Offers a secondary action. It has a different colour scheme than the primary button.
Tertiary: Provides a tertiary action with a distinct visual style.
Link: Resembles a hyperlink, suitable for navigation or linking to other parts of the application. It typically includes an underline.
Hover and Disabled State
The DigitButton widget handles hover effects and a disabled state. When the button is hovered over, it can exhibit visual changes depending on its type. The disabled state prevents interaction and adjusts the button's appearance accordingly.
Icon Placement
The widget supports the placement of icons both before and after the label text. This allows for flexibility in button design.
Properties
It contains the following required Parameters:
These are some optional parameters:
To use the primary button add the below lines of code:
With suffix Icon:
With prefix Icon:
To use the secondary button add the following lines of code:
Prefix and Suffix icons can be added to the secondary button using the same code as given for the primary button.
To use the tertiary button add the below lines of code:
To use a link, add the following lines of code:
This widget is a versatile and customizable checkbox component. It provides a checkbox with an associated label and allows users to toggle between checked and unchecked states. This widget supports various customisation options, including the ability to customise the checkbox icon colour, label, padding, and disabled state.
The widget provides a hover state, visually indicating when the user hovers over the checkbox. This is useful for enhancing the user experience.
This widget contains the following required parameters:
These are some option parameters:
Usages
Add the following lines of code:
DIGIT UI components offer various drop-down menus, including single-select, multi-select, and tree-select options.
The Single Select drop-down in Digit UI Components provides a drop-down menu for users to make a single selection. It supports various features such as item filtering and selection handling. This intuitive component supports options with additional features such as images, icons, and descriptions, complemented by hover and mouse-down effects.
Sub-Types
Default drop-down
Nested drop-down
Tree drop-down
Below are some required parameters:
These are some additional customisation parameters:
DropdownItem
Inside the dropdown item, we can pass additional parameters to include the drop-down like description, image and icons.
There are the customisations available inside the drop-down item:
TreeNode
Inside the tree node we can pass a list of children associated with a node:
Usages
Default drop-down
With description and profile image:
Nested drop-down
Tree drop-down
The Multi-Select drop-down in DIGIT UI components offers a user-friendly interface for selecting multiple options simultaneously. This clean and intuitive component is equipped with built-in chips and provides responsive mouse-down and hover effects.
Sub-Types
Default drop-down
Nested drop-down
Tree drop-down
Below are some required parameters:
These are some additional parameters:
Usages
Default Drop-down
Nested Drop-down
Tree Drop-down
DIGIT UI components include various text input fields with optional features such as character count display, inner labels, and help text. These fields also come with built-in validation support for improved data integrity.
Text Input Field: A text input field for general alphanumeric data.
Text Area Input Field: For multi-line text input.
Search Input Field: Designed for search queries or search-related inputs.
Password Input Field: A secure input field for password entry.
Numeric Input Field: This field is suitable for numeric input.
Date Input Field: An input field designed to capture dates.
Time Input Field: Use this field to input time values.
Location Input Field: Specifically for geographic location data, such as coordinates.
These are some common props which can be sent inside all the input fields:
TextAreaScroll
Usages
Usages
Usages
Usages
Usages
Usages
Usages
Usages
This widget is a versatile and customizable information card designed inside a digit ui widget. It provides a visually appealing way to display information, with options for different types of information.
The Info Card supports different types of information, each with its distinct visual style:
Info: Default information card with a blue background and an information icon.
Success: This represents a successful operation, featuring a green background and a check-circle icon.
Error: Indicates an error or unsuccessful operation with a red background and an error icon.
Warning: Represents a warning or caution, featuring a yellow background and a warning icon.
Developers can include additional widgets beneath the description for extra information or interactive elements. The inline property controls whether these widgets are displayed horizontally or vertically.
Info cards contain the following required parameters:
There are some additional customisation parameters:
Usages
Info Card
Success Card
Error Card
Warning Card
The Toast widget provides a customizable toast notification for Flutter applications. It is designed to display short-lived messages, alerts, or notifications to users in a visually appealing and informative manner.
The ToastType enumeration defines different types of toasts, including:
success: Indicates a successful operation.
error: Indicates an error or failure.
warning: Indicates a warning or caution.
The Toast widget provides a static method for displaying toasts. This method includes the following parameters:
Usage
Success Toast
Error Toast
Warning Toast
DIGIT UI components is a collection of common Flutter widgets designed to simplify UI development. These components offer easy-to-use and customizable features to enhance UI design and streamline the development process.
Add this to your pubspec.yaml file:
Then run:
Import the package in your Dart code:
Atom | Variants | States |
---|
selectedOptions List of DropdownItem, which will be selected by default
The Radio Buttons component in DIGIT UI 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. It is designed to handle both horizontal and vertical layouts based on the screen width.
Below are some required parameters inside the radio list:
The following are additional parameters:
Usages
Add the below lines of code to configure the radio button:
|
|
|
Text Date Time Geolocation Numeric Password Search TextArea | Default Filled Disabled NonEditable Focus Error Label Character Count Inner Label Info Help Text/ Description |
Radio Selection | Default Disabled Selected PreSelected |
Toggle | Default Disabled Selected PreSelected |
Primary Secondary Tertiary Link | Active Disabled Label Interactions |
Single Select Multi Select Sub type: Default Nested Tree | Default Disabled Selected Interactions |
Default Checked | Active Disabled Label Interactions |
Success Warning Failure |
Default Success Warning Error |