FSCustomBreakpoints class
Custom breakpoint configuration for advanced theming and responsive design.
Allows customization of breakpoint values for specific design requirements while maintaining the same mobile-first responsive approach.
Example:
const customBreakpoints = FSCustomBreakpoints(
sm: 600, // Custom small breakpoint
lg: 1100, // Custom large breakpoint
);
- Available extensions
Constructors
Properties
Methods
-
copyWith(
{double? xs, double? sm, double? md, double? lg, double? xl, double? xxl}) → FSCustomBreakpoints - Create a copy with updated values
-
getBreakpoint(
double screenWidth) → FSBreakpoint - Get the current breakpoint based on screen width
-
isAtLeast(
double screenWidth, FSBreakpoint breakpoint) → bool -
Available on FSCustomBreakpoints, provided by the FSCustomBreakpointsExtensions extension
Check if screen width is at least a specific breakpoint -
isBetween(
double screenWidth, FSBreakpoint min, FSBreakpoint max) → bool -
Available on FSCustomBreakpoints, provided by the FSCustomBreakpointsExtensions extension
Check if screen width is between two breakpoints (inclusive) -
isBreakpoint(
double screenWidth, FSBreakpoint breakpoint) → bool -
Available on FSCustomBreakpoints, provided by the FSCustomBreakpointsExtensions extension
Check if screen width matches a specific breakpoint -
isLessThan(
double screenWidth, FSBreakpoint breakpoint) → bool -
Available on FSCustomBreakpoints, provided by the FSCustomBreakpointsExtensions extension
Check if screen width is less than a specific breakpoint -
nextBreakpoint(
FSBreakpoint current) → FSBreakpoint? -
Available on FSCustomBreakpoints, provided by the FSCustomBreakpointsExtensions extension
Get the next larger breakpoint -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
previousBreakpoint(
FSBreakpoint current) → FSBreakpoint? -
Available on FSCustomBreakpoints, provided by the FSCustomBreakpointsExtensions extension
Get the previous smaller breakpoint -
toString(
) → String -
A string representation of this object.
inherited
-
value(
FSBreakpoint breakpoint) → double - Get the numeric value for a given breakpoint from custom configuration
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited