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, {double? widthFactor, double? heightFactor}) → Widget -
Available on Widget, provided by the WidgetExtensions extension
-
aspectRatio(
double ratio) → Widget -
Available on Widget, provided by the WidgetExtensions extension
-
centered(
{double? widthFactor, double? heightFactor}) → Widget -
Available on Widget, provided by the WidgetExtensions extension
-
clipRadius(
BorderRadiusGeometry borderRadius, {Clip clipBehavior = Clip.antiAlias}) → Widget -
Available on Widget, provided by the WidgetExtensions extension
-
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
-
expanded(
{int flex = 1}) → Widget -
Available on Widget, provided by the WidgetExtensions extension
-
flexible(
{int flex = 1, FlexFit fit = FlexFit.loose}) → Widget -
Available on Widget, provided by the WidgetExtensions extension
-
gesture(
{VoidCallback? onTap, VoidCallback? onDoubleTap, VoidCallback? onLongPress, GestureTapDownCallback? onTapDown, GestureTapUpCallback? onTapUp, HitTestBehavior behavior = HitTestBehavior.deferToChild}) → Widget -
Available on Widget, provided by the WidgetExtensions extension
-
height(
double value) → 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 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
-
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(
{double? width, double? height}) → Widget -
Available on Widget, provided by the WidgetExtensions extension
-
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. -
width(
double value) → Widget -
Available on Widget, provided by the WidgetExtensions extension
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