Provide an easy way to make responsive and adaptive Flutter multi-platform applications.
dependencies:
multi_x: any
This packages offers -
-
MxAdaptive - A widget that enables screen adaptation and scaling in Flutter applications.
-
MxAdaptiveNavigation - MxAdaptiveNavigation is a wigdet which can be used for navigation throughout the app. On Small screen it use NavigationBar and on Large screen it use NavigationRail.
-
MxResponsive - A widget that shows a child widget based on the screen size.
-
MxDevice - A widget that shows a child widget based on the device window size either mobile or not.
-
MxLayout - MxLayout is a type of [LayoutBuilder] with some additional power
-
MxPlatform - A widget that shows a child widget based on the platform either Android or iOS or Desktop or Web.
-
MxConditional - A widget that shows a child widget if a condition is true, otherwise shows another child widget.
-
MxConditionalSwitch - A widget that shows a child widget based on switch case conditions.
-
mxColumns - Returns Material no. of Columns as per Material Design Guidelines.
-
mxGutter - Returns Material no. of Gutter as per Material Design Guidelines.
-
mxDeviceType - Returns DeviceType as per Device Screen Size.
-
mxDeviceSize - Returns DeviceSize as per Device Screen Size.
-
mxWindowSize - Returns current window size as per material design breakpoints.
-
isMobileSize - Returns true if window size is of mobile.
-
mq - Returns MediaQuery.of(context).
-
screensize - Returns MediaQuery.of(context).size.
-
devicePixelRatio - Returns MediaQuery.of(context).devicePixelRatio.
-
screenPadding - Returns MediaQuery.of(context).padding.
-
screenWidth - Returns MediaQuery.of(context).size.width.
-
screenHeight - Returns MediaQuery.of(context).size.height.
-
widthInPercent - Returns MQ width in percent.
-
heightInPercent - Returns MQ height in percent.
-
safeAreaHorizontal - Returns safe area horizontal padding.
-
safeAreaVertical - Returns safe area vertical padding.
-
safeAreaWidthInPercent - Returns safe area width in percent.
-
safeAreaHeightInPercent - Returns safe area height in percent.
-
heightTransformer() - Gives you the power to get a portion of the height.
-
widthTransformer() - Gives you the power to get a portion of the width.
-
ratio() - Divide the height/width proportionally by the given value.
-
view - Returns the [FlutterView] that the provided
context
will render into. -
maybeView - Returns the [FlutterView] that the provided
context
will render into. -
orientation - Returns the orientation of the device using MediaQuery.
-
isLandscape - Returns true if orientation is landscape.
-
canShowNavigationRail - Returns true if orientation is landscape and width is greater than 800.
-
Mx.isReleaseMode - Returns true if app is running in release mode.
-
Mx.isDebugMode - Returns true if app is running in debug mode.
-
Mx.isProfileMode - Returns true if app is running in profile mode.
-
Mx.isWeb - Returns true if app is running on web.
-
Mx.isDesktop - Returns true if app is running on desktop.
-
Mx.isMobileOS - Returns true if app is running on mobile.
-
Mx.isAndroid - Returns true if app is running on Android.
-
Mx.isIOS - Returns true if app is running on iOS.
-
Mx.isMacOS - Returns true if app is running on macOS.
-
Mx.isWindows - Returns true if app is running on Windows.
-
Mx.isLinux - Returns true if app is running on Linux.
-
Mx.isFuchsia - Returns true if app is running on Fuchsia.
-
Mx.setPathUrlStrategy() - Sets the path url strategy for web.
-
Mx.setHashUrlStrategy() - Sets the hash url strategy for web.