responsive library

Classes

BreakpointValue<T>
A helper class that allows assigning values based on the current device type (phone, tablet, or computer).
ResponsiveAppBar
ResponsiveContainer
A container that adapts its size based on the screen dimensions. It automatically adjusts its height by subtracting the AppBar and NavigationBar heights, ensuring content is scrollable when needed.
ResponsiveProvider
The ResponsiveProvider class is a provider that listens for changes in device metrics and screen dimensions. It allows adapting the UI based on the current screen size and device type, using breakpoints.
ResponsiveScaffold
A scaffold widget that adapts to different screen sizes. It wraps the content in a responsive context using ResponsiveProvider.
ResponsiveScaffoldRender
Renders the actual scaffold layout for the ResponsiveScaffold. This class builds a standard Scaffold but allows options like extending the body and controlling whether the body should resize to avoid the keyboard.
ResponsiveWidget
A widget that adapts to the size constraints of its parent container. If no constraints are provided, it takes the suggested dimensions.
ResponsiveWrap
A widget that wraps its children and adapts their size based on the available screen space. The widget allows for flexible width, height, and size boundaries, making it suitable for responsive layouts.

Enums

Breakpoint
Enum that represents different breakpoints for responsive design. Each breakpoint corresponds to a specific screen width.

Extensions

BreakpointExtensions on Breakpoint
Extension methods for the Breakpoint enum to provide additional functionality such as converting breakpoints to screen sizes, checking device type, and comparing breakpoints.

Functions

describeEnum(Object enumEntry) String
Converts an enum entry to a string by stripping the enum type name. This method is used to return the name of the enum value without its type prefix.