navand library
Navand, meaning "a swift horse" in Persian, is a web framework in Dart that lets developers create UIs with a widget model similar to Flutter. Navand apps are compiled into JS and painted using HTML & CSS.
Classes
- Animation
- This class can be used to add animations to a DomWidget.
-
AsyncSnapshot<
T> - An immutable representation of the most recent interaction with an asynchronous computation.
- BuildContext
- The location of a specific Widget in the tree.
-
ConsumerBuilder<
T extends Store> - A widget that is rebuilt with the latest state of a Store provided by a Provider.
-
ConsumerWidget<
T extends Store> - A base class for widgets that are rebuilt with the latest state of a Store provided by a Provider.
- Debouncer
- Debounces multiple tasks by running only the last one using scheduleMicrotask.
- DomWidget
- A widget that renders an HTML element on the screen.
- Easing
-
An implementation of the
cubic-bezier
curves. - EventDetails
- The details of the fired event.
- Fragment
- A widget that can render multiple children.
-
FutureBuilder<
T> - A Widget that is rebuilt with the latest snapshot of a Future.
- InheritedWidget
- The base class for widgets that efficiently propagate information down the tree.
- Keyframe
- Similar to keyframes in CSS and JS animations.
- The navigation outlet of a Navand app.
- Provider
- A widget that propagates multiple Store instances down the tree.
- Ref
-
Similar to
ref
in React andGlobalKey
in Flutter. - Route
- A class to declare routes using path, builder, and routes.
- RouteState
- The navigation state of the current Route.
-
State<
T extends StatefulWidget> - The logic and internal state for a StatefulWidget.
- StatefulBuilder
- A widget that has a State and calls a closure to obtain its child widget.
- StatefulWidget
- A Widget that has a mutable state.
- StatelessBuilder
- A stateless utility Widget whose build method uses its builder callback to create its child.
- StatelessWidget
- A Widget that does not have a mutable state.
- Store
- A store that can notify its listeners when setState is called.
-
StreamBuilder<
T> - Style
- Describes how a DomWidget should look on the screens.
- Text
- A widget that renders a piece of text on the screen.
- Widget
- The base class for Navand widgets.
Enums
- AnimationDirection
-
Similar to
animation-direction
in CSS and JS animations. - AnimationFillMode
-
Similar to
animation-fill-mode
in CSS and JS animations. - ConnectionState
- The connection state of an AsyncSnapshot.
Extensions
- ProviderHelpers on BuildContext
- Provider utilities that are added to BuildContext.
- StringHelpers on String
- Adds some utilities to transform strings.
Functions
Typedefs
-
AsyncWidgetBuilder<
T> = Widget Function(BuildContext context, AsyncSnapshot< T> snapshot) - The type of the builder function used in async builders such as StreamBuilder and FutureBuilder.
-
ConsumerWidgetBuilder<
T extends Store> = Widget Function(BuildContext context, T store) - The type of the builder function used in a ConsumerBuilder.
- EventCallback = void Function(EventDetails details)
- The callback function of events.
- RouteRedirector = String? Function(BuildContext context, RouteState state)
- The type of the redirector function used in a Route.
- RouteWidgetBuilder = Widget Function(BuildContext context, RouteState state)
- The type of the builder function used in a Route.
- StatefulWidgetBuilder = Widget Function(BuildContext context, StateSetter setState)
- The type of the builder function used in a StatefulBuilder.
- StatelessWidgetBuilder = Widget Function(BuildContext context)
- The type of the builder function used in a StatelessBuilder.
- StateSetter = void Function(void callback())
- The type of the function that updates a State.