AtomicResponsiveUtils class

Constructors

AtomicResponsiveUtils.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent 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

bottomSafeArea(BuildContext context) double
getCardWidth(BuildContext context, {int columns = 1}) double
getDeviceCategory(BuildContext context) AtomicDeviceCategory
getDialogWidth(BuildContext context) double
getTextScaleFactor(BuildContext context) double
hasBottomNotch(BuildContext context) bool
isDesktop(BuildContext context) bool
isLandscape(BuildContext context) bool
isLargeDesktop(BuildContext context) bool
isMediumScreen(BuildContext context) bool
isMobile(BuildContext context) bool
isPortrait(BuildContext context) bool
isShortScreen(BuildContext context) bool
isTablet(BuildContext context) bool
isTallScreen(BuildContext context) bool
responsiveColumns(BuildContext context) int
responsiveFontSize(BuildContext context, {double mobile = 16.0, double tablet = 18.0, double desktop = 20.0}) double
responsiveMargin(BuildContext context, {EdgeInsets? mobile, EdgeInsets? tablet, EdgeInsets? desktop}) EdgeInsets
responsivePadding(BuildContext context, {EdgeInsets? mobile, EdgeInsets? tablet, EdgeInsets? desktop}) EdgeInsets
responsiveSpacing(BuildContext context, {double mobile = 16.0, double tablet = 24.0, double desktop = 32.0}) double
responsiveValue<T>(BuildContext context, {required T mobile, T? tablet, T? desktop, T? largeDesktop}) → T
responsiveWidth(BuildContext context, {double mobileRatio = 1.0, double tabletRatio = 0.8, double desktopRatio = 0.6, double? maxWidth}) double
safeArea(BuildContext context) EdgeInsets
screenHeight(BuildContext context) double
screenHeightFraction(BuildContext context, double fraction) double
screenSize(BuildContext context) Size
screenWidth(BuildContext context) double
screenWidthFraction(BuildContext context, double fraction) double
shouldShowSidebar(BuildContext context) bool
shouldUseBottomNavigation(BuildContext context) bool
shouldUseDrawer(BuildContext context) bool
shouldUseTabBar(BuildContext context) bool
statusBarHeight(BuildContext context) double