adaptive_ui library

Flutter Adaptive Kit - A comprehensive Flutter package for building responsive and adaptive UIs.

This package provides:

  • Device type detection (phone, tablet, desktop, foldable)
  • Breakpoint-based responsive layouts
  • Design size initialization for pixel-perfect scaling
  • Extension methods for responsive sizing (.aw, .ah, .asp, .ar)
  • Builder widgets for adaptive layouts
  • Platform detection utilities
  • Landscape breakpoint support

Classes

AdaptiveBreakpoints
Breakpoint configuration for device type detection.
AdaptiveBuilder
A builder widget that provides different layouts based on device type.
AdaptiveContext
Internal holder for the current AdaptiveData context.
AdaptiveData
InheritedWidget that provides adaptive configuration to descendant widgets.
AdaptiveDeviceInfo
Contains all adaptive device and screen information.
AdaptiveFontSize
Pre-defined adaptive font sizes.
AdaptiveLayout
A simpler version of AdaptiveBuilder that takes widgets directly.
AdaptiveOrientationBuilder
Combines device type and orientation for comprehensive layout building.
AdaptiveRichText
A rich text widget that automatically scales based on screen size.
AdaptiveScope
The main wrapper widget that provides adaptive configuration to your app.
AdaptiveSpacing
Pre-defined adaptive spacing values.
AdaptiveText
A text widget that automatically scales based on screen size.
AdaptiveUtils
Utilities for ensuring screen size is available before initialization.
AdaptiveVisibility
A widget that conditionally shows or hides its child based on device type.
DesignSize
Design size configuration for adaptive scaling.
OrientationLayout
A simpler version of OrientationLayoutBuilder that takes widgets directly.
OrientationLayoutBuilder
A builder widget that provides different layouts for portrait and landscape.
PlatformUtils
Utilities for platform detection.
ResponsiveBreakpointBuilder
A builder that rebuilds when screen size changes.
ResponsiveBuilder
A builder widget that provides different layouts based on screen size.
ResponsiveLayout
A simpler version of ResponsiveBuilder that takes widgets directly.
ResponsiveValue<T>
A responsive value that changes based on device type or screen size.
ResponsiveVisibility
A widget that conditionally shows or hides its child based on screen size.
ScreenResponsiveValue<T>
A responsive value based on screen size categories.
ScreenSizeBreakpoints
Breakpoints for screen size categories.

Enums

DeviceType
Device type enumeration for adaptive layouts.
ResponsivePlatform
Target platform for responsive design.
ScreenSize
Screen size categories for responsive layouts.

Extensions

AdaptiveBorderRadiusExtension on BorderRadius
Extension on BorderRadius for adaptive scaling.
AdaptiveBoxConstraintsExtension on BoxConstraints
Extension on BoxConstraints for adaptive scaling.
AdaptiveContextExtension on BuildContext
Extension methods on BuildContext for easy access to adaptive features.
AdaptiveEdgeInsetsExtension on EdgeInsets
Extension on EdgeInsets for adaptive scaling.
AdaptiveNumExtension on num
Extension on num for adaptive sizing.
AdaptiveRadiusExtension on Radius
Extension on Radius for adaptive scaling.
AdaptiveSizeExtension on Size
Extension on Size for adaptive scaling.
DeviceTypeExtension on DeviceType
Extension methods for DeviceType
ScreenSizeExtension on ScreenSize
Extension methods for ScreenSize

Typedefs

OrientationWidgetBuilder = Widget Function(BuildContext context, AdaptiveDeviceInfo info)
Signature for a widget builder that receives orientation context.