rad library
Rad's Main library.
This library contain general widgets and functions.
Classes
- AppRunner
- App Runner.
- AsyncRoute
- Navigator's AsyncRoute.
- BuildContext
- A handle to the location of a widget in the widget tree.
- DebugOptions
- App debug options.
- DomNodePatch
- Description patch for a dom node.
- EmittedEvent
- A wrapper for native-events.
- EventDetector
- A widget for detecting dom events on a widget or part of tree.
- GestureDetector
- A widget that detects gestures.
- Hook
- Base class for hooks.
- InheritedWidget
- Base class for widgets that efficiently propagate information down the tree.
- Key
- A Key is an identifier for Widgets.
- ListView
- Creates a scrollable, linear array of widgets from an explicit List.
- MetaInformation
- Meta information.
- MountOptions
- App Mount options.
- Navigator widget.
- RadApp
- A Simple App Widget that takes as much space as its parents allowed it to.
- RawEventDetector
- A widget for adding native event listeners.
- RawMarkUp
- A widget that helps pushing raw contents to the DOM.
- RenderElement
- An instantiation of a Widget at a particular location in the tree.
- RenderEvent
- A RenderElement's event.
- RootRenderElement
- Root render element.
- Route
- Navigator's Route.
- RouterOptions
- Router options.
-
State<
T extends StatefulWidget> - The logic and internal state for a StatefulWidget.
- StatefulWidget
- A widget that has mutable state.
- StatelessWidget
- A widget that does not require mutable state.
- Text
- A utility widget to print text on screen.
- WatchfulRenderElement
- A render element show casing lifecycle events.
- Widget
- Describes the configuration for an RenderElement.
- Window
- Window interface.
- WindowDelegate
- Window delegate.
Enums
- Axis
- The two cardinal directions in two dimensions.
- ButtonType
- Type of Button.
- CrossOriginType
- Cross origin request type.
- DecodingType
- Decoding type.
- DirectionType
- Text render direction.
- DomEventType
- Type of DOM event.
- DomTagType
- Widget's corresponding DOM tag.
- FetchPriorityType
- Provides a hint of the relative priority to use when fetching the resource.
- FormEncType
- HTML form's encoding type.
- FormMethodType
- HTML form's method type.
- HitTestBehavior
- Defines GestureDetector behaviour.
- InputType
- HTML Input type.
- KindType
- LayoutType
- Type of layout.
- ListType
- Type of ordered list.
- LoadingType
- PreloadType
- Preload type.
- ReferrerPolicyType
- The Referrer-Policy HTTP header controls how much referrer information (sent with the Referer header) should be included with requests.
- RenderEventType
- Type of Render event.
- ScopeType
- This enumerated attribute defines the cells that the header (defined in the TableHeaderCell) element relates to.
- SpellCheckType
- Specifies whether the
- UpdateType
- Type of update event that's happened in parent tree.
- WrapType
- Indicates how the control wraps text.
Functions
-
runApp(
{required Widget app, required String appTargetId, VoidCallback? beforeMount, MountOptions? mountOptions, RouterOptions? routerOptions, DebugOptions? debugOptions}) → AppRunner - Convenience function that spin a AppRunner.
-
setupHook(
Hook hook) → Hook - Create and dispatch a new hook at current index.
-
useContext(
) → BuildContext - Returns nearest BuildContext.
-
useHook(
) → Hook? - Try fetching a registered hook at current index.
- Returns nearest navigator state.
Typedefs
-
AsyncOrSyncWidgetBuilder
= FutureOr<
Widget> Function() - EventCallback = void Function(EmittedEvent event)
- ExceptionCallback = void Function(Exception event)
- HookEvent = ScopeEvent
- A hook event.
- HookEventCallback = void Function(HookEvent event)
- A hook event callback.
- HookEventType = ScopeEventType
- Type of hook event.
- HookScope = RenderScope
- A scope for using hooks.
- IndexedWidgetBuilder = Widget Function(BuildContext context, int index)
- NativeEventCallback = void Function(Event event)
- NullableElementCallback = void Function(Element? element)
- PopStateEventCallback = void Function(PopStateEvent event)
- RenderElementCallback = void Function(RenderElement renderElement)
- RenderElementVisitor = bool Function(RenderElement renderElement)
- VoidCallback = void Function()
- WidgetBuilder = Widget Function(BuildContext context)