hmwidget library
Classes
- ActionSheetItem
- CameraController
- Controls a device camera.
- CameraDescription
- Properties of a camera device.
- CameraImage
- A single complete image buffer from the platform camera.
- CameraPreview
- A widget showing a live camera preview.
- CameraValue
- The state of a CameraController.
- Check
-
DetailsPage<
T> - FilePicker
- The interface that implementations of file_picker must implement.
- FilePickerResult
- HMAutocomplete
- HMAutocompleteTheme
- HMButton
- child of type Widget is alternative to title key. title will get priority over child
- HMButtonTheme
- HMCheckBox
- HMCheckBoxTheme
- HMChipTheme
- HMChoiceChips
- HMColorIpnut
- HMColorPicker
- HMFilePiker
- HMFileSource
- HMFilterChips
- HMIconButton
- HMIconButtonTheme
- HMImagePicker
- HMMultiSelect
- HMMultiSelectTheme
- HMRadio
- HMRadioTheme
- HMRangeSlider
- HMSelect
- HMSelectBadge
- HMSelectBagdeTheme
- HMSelectedItem
- HMSelectTheme
- HMSlider
- HMSliderMark
- HMSliderTheme
- HMSwitch
- HMSwitchTheme
- HMTextField
- HMTextFieldTheme
- ImageFormat
- Describes how pixels are represented in an image.
- ImagePicker
- Provides an easy way to pick an image/video from the image library, or to take a picture/video with the camera.
- InheritedDataProvider
- LostData
- The response object of ImagePicker.retrieveLostData.
- LostDataResponse
- The response object of ImagePicker.getLostData.
-
Optional<
T> - A value that might be absent.
- PickedFile
- A PickedFile is a cross-platform, simplified File abstraction.
- Plane
- A single color plane of image data.
- PlatformFile
- RadioIcon
- UnCheck
- UpperCaseTextFormatter
- XFile
- A CrossFile is a cross-platform, simplified File abstraction.
Enums
- CameraDevice
-
Which camera to use when picking images/videos while source is
ImageSource.camera
. - CameraLensDirection
- The direction the camera is facing.
- ExposureMode
- The possible exposure modes that can be set for a camera.
- FilePickerStatus
- FileSource
- FileType
- FlashMode
- The possible flash modes that can be set for a camera
- FocusMode
- The possible focus modes that can be set for a camera.
- HMButtonSize
- The size of HMButton
- HMButtonVariant
- HMCheckBoxSize
- HMChipVariant
- HMIconButtonSize
- HMLoader
- HMOrientation
- HMRadioSize
- HMRadius
- HMSelectSize
- HMSelectType
- HMSelectVariant
- HMSliderSize
- HMSwitchSize
- HMTextFieldSize
- HMTextFieldType
- HMTextVariant
- ImageFormatGroup
- Group of image formats that are comparable across Android and iOS platforms.
- ImageSource
- Specifies the source where the picked image should come from.
- ResolutionPreset
- Affect the quality of video recording and image capture:
- RetrieveType
- The type of the retrieved data in a LostDataResponse.
- SliderType
Extensions
Constants
- defaultDialogTitle → const String
- kTypeImage → const String
- Denotes that an image is being picked.
- kTypeVideo → const String
- Denotes that a video is being picked.
Functions
-
availableCameras(
) → Future< List< CameraDescription> > - Completes with a list of available cameras.
-
colorToString(
Color color) → String -
showActionSheet(
{required BuildContext context, required List< ActionSheetItem> actions, Widget? cancelButton, bool hasCancelButton = true}) → Future
Typedefs
- onLatestImageAvailable = void Function(CameraImage image)
- Signature for a callback receiving the a camera image.
Exceptions / Errors
- CameraException
- This is thrown when the plugin reports an error.