BreakPoint class Null safety

To create screen category or to identified device size base on screen width And to define required properties in breakpoints

Bootstrap v5.0 provides custom breakpoints but for now it is still not possible to customize breakpoints in this package

More information about Bootstrap Breakpoint visit: https://getbootstrap.com/docs/5.0/layout/breakpoints/

Constructors

BreakPoint({double? breakpoint, double? screenWidth, double? containerWidth, String? state})
BreakPoint.of(BuildContext context)
Use this to identification current state and get all the properties present on the breakpoint
factory

Properties

breakpoint double?
Use them to control when your layout can be adapted at a particular device size.
final
containerWidth double?
Maximum width of BsContainer widget based on breakpoint
final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
screenWidth double?
Current screen width from MediaQuery
final
state String?
String state for easy identification screenWidth category based on breakpoint
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Methods

isDesktop(BuildContext context) bool
isMobile(BuildContext context) bool
isTablet(BuildContext context) bool
on(BuildContext context, {Widget? mobile, Widget? tablet, Widget? desktop}) Widget
onDesktop(BuildContext context, WidgetBuilder builder) Widget
onMobile(BuildContext context, WidgetBuilder builder) Widget?
onTablet(BuildContext context, WidgetBuilder builder) Widget

Constants

stateLg → const String
'lg'
stateMd → const String
'md'
stateSm → const String
'sm'
stateXl → const String
'xl'
stateXs → const String
'xs'
stateXxl → const String
'xxl'