mih_package_toolkit library
A comprehensive UI toolkit and utility library to create your own MIH Package.
The mih_package_toolkit provides a curated set of widgets, forms,
and design utilities—ranging from custom buttons and input fields
to complex layout components like floating menus and package windows.
Getting Started
To use this library, simply add the import to your dart file:
import 'package:mih_package_toolkit/mih_package_toolkit.dart';
Key Component Categories:
- Form Elements: MihForm,
MihTextField, MihDateField, MihDropdownField. - Navigation & Layout: MihFloatingMenu, MihPackageWindow, MihPackageToolBody.
- Feedback & Progress: MihSnackBar,
MihLoadingCircle. - Design Tokens: MihColors, MihIcons.
Classes
- MihButton
- A custom stylized button component from the MIH Toolkit.
- MihColors
- A centralized design token class for the MIH Toolkit color palette.
- MihDateField
- A customized date selection field that integrates with showDatePicker.
- MihDropdownField
- A robust, searchable dropdown menu component for the MIH Toolkit.
- MihFloatingMenu
- A customized floating action button that expands into a menu of sub-actions.
- MihForm
- A layout wrapper that standardizes the appearance and behavior of form fields.
- MihIcons
- A custom icon collection specifically designed for the MIH Toolkit.
- Mihloadingcircle
- A stylized loading dialog featuring a pulsing MIH logo.
- MihNumericStepper
- A numeric input component that allows users to increment or decrement values.
- MihPackage
- The core container for MIH application modules.
- MihPackageAction
- A standardized action button component for the MIH Toolkit.
- MihPackageTile
- A touchable "App Tile" used for launching modules within the MIH ecosystem.
- MihPackageToolBody
- A structural container for individual pages within a MihPackage.
- MihPackageTools
- A horizontal toolbar used for navigation within a MihPackage.
- MihPackageWindow
- A versatile window container used for dialogs or sub-sections.
- MihRadioOptions
- A customized group of radio buttons for selecting a single option from a list.
- MihSearchBar
- A highly customizable search bar with reactive icon states.
- MihSingleChildScroll
- A standardized scrollable container for the MIH Toolkit.
- MihTextFormField
- The foundational text input component for the MIH Toolkit.
- MihTimeField
- A specialized input field for selecting and displaying time.
- MihToggle
- A stylized binary switch with integrated labeling.
Functions
-
MihSnackBar(
{Color? backgroundColor, required Widget child}) → SnackBar - A helper function to generate a standardized MIH-styled SnackBar.