home_widget_generator library

Classes

HomeWidget
Annotation for generating home_widget native code.
HomeWidgetAndroidConfiguration
Configuration for the Android widget.
HomeWidgetIOSConfiguration
Configuration for the iOS widget.
HWAdaptive
A widget that conditionally renders different widgets for iOS and Android.
HWBool
HWBoolConditional
Renders a widget depending on a boolean data field. The provided HWBool must have a default value.
HWBoxBorder
A simple border for HWBoxDecoration.
HWBoxDecoration
A box decoration with an optional background color and border.
HWColor
Base class for all color representations in HomeWidget.
HWColoredBox
A widget that paints its area with a specified color, and optionally accepts a child.
HWColumn
A vertical layout widget for use in widgetBuilder.
HWConditional
Abstract base class for conditional widgets.
HWDataExists
Renders a widget depending on whether a data field exists in the preferences.
HWDataOnly
A widget that contributes data fields but renders nothing. Useful for passing background data or non-visual fields.
HWDataType<T>
Base class for all data type descriptors used in @HomeWidget(data: {...}).
HWDataWidget
Interface for widgets that hold data dependencies.
HWDecoratedBox
A widget that decorates its child with a background color and/or border.
HWDefaultColor
A color that maps to default system semantic colors based on the given role.
HWDouble
HWEdgeInsets
Represents padding around a widget.
HWFill
A widget that expands a child of a Row, Column, or Flex so that the child fills the available space.
HWFixedColor
A fixed color defined by an ARGB integer value (e.g. 0xFFFF0000 for Red).
HWGeneratable
A common interface for elements that can generate Swift and Kotlin code with their associated imports.
HWInt
HWJson
HWMultiChildWidget
Base class for widgets that accept multiple children (e.g. Column, Row).
HWPadding
A widget that insets its child by the given padding.
HWRoleTextStyle
HWRow
A horizontal layout widget for use in widgetBuilder.
HWSingleChildWidget
Base class for widgets that accept a single child (e.g. Expanded).
HWString
HWText
A text widget for use in widgetBuilder.
HWTextStyle
A class representing text styling options for HWText.
HWThemedColor
A color that adapts its output based on the system's light or dark mode.
HWWidget
Abstract base class for all DSL widgets used in widgetBuilder. Subclasses: HWText (v3), HWColumn, HWRow (v4).

Enums

HWAndroidResizeMode
The rules by which a widget can be resized.
HWAndroidWidgetCategory
The category of widget. Whether it can be displayed on the home screen, the keyguard, or both.
HWColorRole
The semantic roles for default system colors.
HWCrossAxisAlignment
Cross-axis alignment for HWColumn/HWRow.
HWFontWeight
HWMainAxisAlignment
Main-axis alignment for HWColumn/HWRow.
HWTextAlign
HWTextStyleRole
HWWidgetFamily
The size and shape of a widget.