widget/widget library

Classes

AnchoredScrollableController<AnchorValue extends Object>
The AnchoredScrollableController class is a controller for the BadAnchoredScrollable widget, providing functionality to manage and control scrollable areas with anchor points.
BadAnchoredScrollable<AnchorValue extends Object>
A widget that makes its children (wrapped in ScrollAnchor) can be anchored and scrolled to.
BadButton
A combination of Container and GestureDetector that provides a facade configuration for a button.
BadButtonAsync
BadCapture
A widget to wrap the child widget for snapshot capturing.
BadCarousel
BadCheckbox
This widget is designed as controlled widget.
BadClickable
A wrapper widget that makes its child clickable.
BadCommonInput
Common input widget with customizable prefix icon.
BadContributionCalendar
BadCyclicCarousel
Carousel with cyclic behavior, when the user swipes out the last page, it will jump back to the first page as if it's infinite.
BadExpandable
Expandable panel with self-maintained open state.
BadExpandableControlled
Expandable panel with controlled open state.
BadFloating
Note: this should be used within a Stack widget.
BadFreeDraw
A canvas for free draw with undo/redo support.
BadInput
Features:
BadInputController<T extends BadInput>
BadKatex
A widget that can render text with formulas.
BadLinearCarousel
Carousel with limited pages, when the user swipes out the last page, onSwipeOut will be called.
BadNamedStack
BadOTPInput
OTP input widget with customizable suffix widget. TODO: refactor to cubic style
BadPasswordInput
Password input widget with toggleable visibility.
BadPhoneInput
Phone number input widget with customizable separator.
BadPopup
BadPreview
Wrap a widget within BadPreview to enable previewing the widget when clicked.
BadRadio<Value>
Radio widget with custom builder for items.
BadRefreshable
A wrapper around easy_refresh that provides a simple way to refresh and load more.
BadSimpleInput
Simple input widget without error state.
BadSkeleton
BadSpinner
BadSwitch
This widget is designed as controlled widget.
BadSwitchAsync
BadText
A wrapper around Text and SelectableText that provides a facade configuration.
BadTree<NodeData extends Object>
CalendarConfig
CalendarController
CalendarLayoutConfig
Configuration for the layout of the calendar
CaptureController
FloatingPosition
Describe the position of floating widget in two demension.
FreeDrawController
Controller for free draw widget.
NamedStackController
NamedStackLayer
PopupController
ScrollAnchor<AnchorValue extends Object>
A wrapper widget that makes its child as an anchor point to scroll to.
TreeController<NodeData extends Object>
TreeNode<NodeData extends Object>
An object corresponding to a tree node, used to store and manage node status.

Enums

AdsorbStrategy
Adsorb behavior of floating widget.
ShimmerDirection

Functions

kDefaultExpandProvider(dynamic $1, dynamic $2) bool

Typedefs

CellColorGetter = Color Function(int? value, int? min, int? max)
ChildrenProvider<NodeData extends Object> = Iterable<NodeData>? Function(NodeData parent, int depth)
ExpandProvider<NodeData extends Object> = bool Function(NodeData node, int depth)
IndicatorBuilder = Widget Function(BuildContext context, int index)
NodeViewBuilder<T extends Object> = Widget Function(TreeNode<T> node)
PopupChildBuilder = Widget Function(BuildContext context, bool visible)