ResponsiveKite class
Lifecycle-safe responsive boundary.
Public usage remains unchanged:
builder: (context, child) {
return ResponsiveKite(child: child!);
}
The first application frame intentionally exposes a compact responsive snapshot. On Flutter web debug this avoids eagerly mounting the much larger desktop tree while DDC is still lazily linking libraries. Immediately after that first frame, Kite promotes the scope to the real MediaQuery width.
Once bootstrapped, MediaQuery changes are applied normally and WidgetsBindingObserver.didChangeMetrics provides an extra web/desktop safety net.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- ResponsiveKite
- Available extensions
Constructors
- ResponsiveKite({required Widget child, Key? key})
-
const
Properties
Methods
-
absorbPointer(
{bool absorbing = true}) → Widget -
Available on Widget, provided by the WidgetExtensions extension
-
align(
AlignmentGeometry alignment, {Key? key, double? widthFactor, double? heightFactor}) → Align -
Available on Widget, provided by the WidgetLayoutExtensions extension
Aligns this widget within the available space. -
aspectRatio(
double ratio) → Widget -
Available on Widget, provided by the WidgetExtensions extension
-
center(
{Key? key, double? widthFactor, double? heightFactor}) → Center -
Available on Widget, provided by the WidgetLayoutExtensions extension
Centers this widget within the available space. -
clipRadius(
BorderRadiusGeometry borderRadius, {Clip clipBehavior = Clip.antiAlias}) → Widget -
Available on Widget, provided by the WidgetExtensions extension
-
clipRounded(
BorderRadiusGeometry borderRadius, {Key? key, Clip clipBehavior = Clip.antiAlias}) → ClipRRect -
Available on Widget, provided by the WidgetLayoutExtensions extension
Clips this widget to a rounded rectangle using the supplied radius. -
constrained(
{double minWidth = 0, double maxWidth = double.infinity, double minHeight = 0, double maxHeight = double.infinity}) → Widget -
Available on Widget, provided by the WidgetExtensions extension
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< ResponsiveKite> -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
decorated(
BoxDecoration decoration, {Key? key, DecorationPosition position = DecorationPosition.background}) → DecoratedBox -
Available on Widget, provided by the WidgetLayoutExtensions extension
Paints a caller-provided box decoration behind or in front of this widget. -
expanded(
{Key? key, int flex = 1}) → Expanded -
Available on Widget, provided by the WidgetLayoutExtensions extension
Fills a share of remaining space in a Row, Column, or Flex. -
flexible(
{Key? key, int flex = 1, FlexFit fit = FlexFit.loose}) → Flexible -
Available on Widget, provided by the WidgetLayoutExtensions extension
Allocates flex space with either loose or tight child constraints. -
gesture(
{VoidCallback? onTap, VoidCallback? onDoubleTap, VoidCallback? onLongPress, GestureTapDownCallback? onTapDown, GestureTapUpCallback? onTapUp, HitTestBehavior behavior = HitTestBehavior.deferToChild}) → Widget -
Available on Widget, provided by the WidgetExtensions extension
-
hero(
Object tag) → Widget -
Available on Widget, provided by the WidgetExtensions extension
-
ignorePointer(
{bool ignoring = true}) → Widget -
Available on Widget, provided by the WidgetExtensions extension
-
inkWell(
{VoidCallback? onTap, VoidCallback? onLongPress, BorderRadius? borderRadius, bool enableFeedback = true}) → Widget -
Available on Widget, provided by the WidgetExtensions extension
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onTap(
VoidCallback? callback, {HitTestBehavior behavior = HitTestBehavior.opaque}) → Widget -
Available on Widget, provided by the WidgetExtensions extension
-
opacity(
double value, {bool alwaysIncludeSemantics = false}) → Widget -
Available on Widget, provided by the WidgetExtensions extension
-
padding(
EdgeInsetsGeometry insets, {Key? key}) → Padding -
Available on Widget, provided by the WidgetLayoutExtensions extension
Insets this widget using caller-provided, non-negative padding. -
padding(
EdgeInsetsGeometry value) → Widget -
Available on Widget, provided by the WidgetExtensions extension
-
paddingAll(
double value) → Widget -
Available on Widget, provided by the WidgetExtensions extension
-
paddingHorizontal(
double value) → Widget -
Available on Widget, provided by the WidgetExtensions extension
-
paddingOnly(
{double left = 0, double top = 0, double right = 0, double bottom = 0}) → Widget -
Available on Widget, provided by the WidgetExtensions extension
-
paddingSymmetric(
{double horizontal = 0, double vertical = 0}) → Widget -
Available on Widget, provided by the WidgetExtensions extension
-
paddingVertical(
double value) → Widget -
Available on Widget, provided by the WidgetExtensions extension
-
positioned(
{Key? key, double? left, double? top, double? right, double? bottom, double? width, double? height}) → Positioned -
Available on Widget, provided by the WidgetLayoutExtensions extension
Positions this widget relative to a Stack's edges. -
positionedFill(
{Key? key, double? left = 0, double? top = 0, double? right = 0, double? bottom = 0}) → Positioned -
Available on Widget, provided by the WidgetLayoutExtensions extension
Stretches this widget between a Stack's edges. -
safeArea(
{bool left = true, bool top = true, bool right = true, bool bottom = true, EdgeInsets minimum = EdgeInsets.zero, bool maintainBottomViewPadding = false}) → Widget -
Available on Widget, provided by the WidgetExtensions extension
-
semantics(
{String? label, String? hint, bool? button, bool? enabled}) → Widget -
Available on Widget, provided by the WidgetExtensions extension
-
showIf(
bool condition) → Widget -
Available on Widget, provided by the WidgetExtensions extension
-
sized(
{Key? key, double? width, double? height}) → SizedBox -
Available on Widget, provided by the WidgetLayoutExtensions extension
Requests a width and/or height, subject to the parent's constraints. -
sliver(
) → Widget -
Available on Widget, provided by the WidgetExtensions extension
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
tooltip(
String message, {Duration? waitDuration}) → Widget -
Available on Widget, provided by the WidgetExtensions extension
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
-
visible(
bool value, {Widget replacement = const SizedBox.shrink()}) → Widget -
Available on Widget, provided by the WidgetExtensions extension
-
when(
bool condition, Widget wrapper(Widget child)) → Widget -
Available on Widget, provided by the WidgetExtensions extension
Applieswrapperonly whenconditionis true.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
maybeOf(
BuildContext context) → KiteResponsiveData? -
maybeSizeOf(
BuildContext context) → KiteLayoutSize? -
maybeWidthOf(
BuildContext context) → double? -
of(
BuildContext context) → KiteResponsiveData -
sizeOf(
BuildContext context) → KiteLayoutSize -
widthOf(
BuildContext context) → double