core/responsive/responsive library

Classes

AdaptiFlow
Provides AdaptiFlowData configuration to the widget tree.
AdaptiFlowData
Immutable configuration data for the AdaptiFlow responsive system.
Breakpoints
Defines the default screen width breakpoints for adaptive UI changes.
ResponsiveGrid
A grid widget that auto-adjusts column count based on device type.
ResponsiveLayout
A widget that switches between layouts based on available width constraints.
ResponsiveLayoutBuilder
A responsive builder that provides DeviceType along with BoxConstraints.
ResponsivePadding
A widget that applies responsive padding based on device type.
ResponsiveSpacer
A flexible spacer that automatically creates a SizedBox with width or height based on its parent axis (Row/Column).
ResponsiveText
A text widget with automatic responsive font sizing.
ResponsiveValue<T>
A reusable class-based responsive value.
ResponsiveVisibility
A widget that conditionally shows or hides its child based on DeviceType.
SafeResponsiveLayout
A safe layout wrapper that handles common overflow and safe area concerns.
Spacers
Predefined spacer sizes for consistency.

Enums

DeviceType
Enumeration of supported device types based on screen width breakpoints.

Extensions

ResponsiveConstraints on Widget
Extension on Widget to prevent content overflow on large screens.
ResponsiveDimensions on BuildContext
Extension on BuildContext for responsive dimension calculations.

Functions

orientationValue<T>(BuildContext context, {required T portrait, required T landscape}) → T
Returns a value based on the current device orientation.
resolveDeviceType(double width, {double mobileBreakpoint = 600, double desktopBreakpoint = 1200, double widescreenBreakpoint = 1920}) DeviceType
Resolves the DeviceType for a given width using the provided breakpoint thresholds.
responsiveValue<T>(BuildContext context, {required T mobile, T? tablet, T? desktop, T? widescreen}) → T
Returns a value based on the current device type (screen width).