VxContextExtensions extension

Extensions for general basic Context

on

Properties

accentColor Color
The foreground color for widgets (knobs, text, overscroll edge effect, etc).
no setter
backgroundColor Color
A color that contrasts with the primaryColor.
no setter
bodyLarge TextStyle?
no setter
bodyMedium TextStyle?
no setter
bodySmall TextStyle?
no setter
brightness Brightness
The default brightness of the Theme.
no setter
canShowNavRail bool
True if width be larger than 800
no setter
canvasColor Color
The default color of MaterialType.canvas Material.
no setter
captionStyle TextStyle?
Extension for getting textTheme
no setter
cardColor Color
The default color of MaterialType.card Material.
no setter
colors ColorScheme
no setter
cupertinoTheme CupertinoThemeData
Extension for getting CupertinoThemeData
no setter
devicePixelRatio double
Get MediaQuery devicePixelRatio
no setter
displayLarge TextStyle?
no setter
displayMedium TextStyle?
no setter
displaySmall TextStyle?
no setter
headlineLarge TextStyle?
no setter
headlineMedium TextStyle?
no setter
headlineSmall TextStyle?
no setter
isDarkMode bool
If the ThemeData of the current BuildContext is dark
no setter
isLandscape bool
Returns if Orientation is landscape
no setter
isLargeSize bool
Check if the window size is large.
no setter
isMediumSize bool
Check if the window size is medium.
no setter
isMobile bool
Check if the window size is of Mobile Type as per Material Design Guidlines.
no setter
isMobileTypeHandset bool
Returns if it's a handset as per Material Design Guidlines.
no setter
isMobileTypeTablet bool
Returns if it's a tablet as per Material Design Guidlines.
no setter
isSmallSize bool
Check if the window size is small.
no setter
isXLargeSize bool
Check if the window size is xlarge.
no setter
isXSmallSize bool
Check if the window size is xsmall.
no setter
labelLarge TextStyle?
no setter
labelMedium TextStyle?
no setter
labelSmall TextStyle?
no setter
maybeView FlutterView?
Returns the FlutterView that the provided context will render into.
no setter
mdColumns int
Screen Sizes Extensions for responsive UI Returns Material no. of Columns as per Material Design Guidlines.
no setter
mdDeviceSize MobileDeviceSize
Returns device size as per Material Design Guidlines.
no setter
mdDeviceType MobileDeviceType
Returns device Type as per Material Design Guidlines.
no setter
mdGutter double
Returns Material no. of Gutters as per Material Design Guidlines.
no setter
mdWindowSize VxWindowSize
Returns the current window size as per Material Design Guidlines.
no setter
mq MediaQueryData
To get a MediaQuery directly.
no setter
orientation Orientation
Returns Orientation using MediaQuery
no setter
percentHeight double
Get MediaQuery Screen height in percentage
no setter
percentWidth double
Get MediaQuery Screen Width in percentage
no setter
primaryColor Color
The background color for major parts of the app (toolbars, tab bars, etc).
no setter
safePercentHeight double
Get MediaQuery Screen Height in percentage including safe area calculation.
no setter
safePercentWidth double
Get MediaQuery Screen Width in percentage including safe area calculation.
no setter
screenDensity double
Get MediaQuery Screen Density
no setter
screenHeight double
Get MediaQuery Screen Height
no setter
screenPadding EdgeInsets
Get MediaQuery Screen Padding
no setter
screenSize Size
Get MediaQuery Screen Size
no setter
screenWidth double
Get MediaQuery Screen Width
no setter
textTheme TextTheme
Extension for getting textTheme
no setter
theme ThemeData
Extension for getting Theme
no setter
titleLarge TextStyle?
no setter
titleMedium TextStyle?
no setter
titleSmall TextStyle?
no setter
view FlutterView
Returns the FlutterView that the provided context will render into.
no setter
vxform FormState?
Returns The state from the closest instance of this class that encloses the given context. It is used for validating forms
no setter
vxlocale Locale?
Returns The current Locale of the app as specified in the Localizations widget.
no setter
vxnavigator NavigatorState?
Extension for navigation to next page Returns The state from the closest instance of this class that encloses the given context.
no setter
vxoverlay OverlayState?
Returns The state from the closest instance of this class that encloses the given context.
no setter
vxscaffold ScaffoldState
Returns the closest instance of ScaffoldState in the widget tree, which can be use to get information about that scaffold.
no setter

Methods

addOverlay(WidgetBuilder builder) OverlayEntry
Insert the given widget into the overlay. The newly inserted widget will always be at the top.
heightTransformer({double dividedBy = 1, double reducedBy = 0.0}) double
Gives you the power to get a portion of the height. Useful for responsive applications.
invokeAction(Intent intent) bool?
Action Extension
nextAndRemoveUntilPage(Widget page) → void
Removing all the widgets till defined rule, and pushes the built widget to the screen using the material fade in animation
nextPage(Widget page, {bool maintainState = true}) → void
Pushes the built widget to the screen using the material fade in animation
nextReplacementPage(Widget page, {bool maintainState = true}) → void
Pushes and replacing the built widget to the screen using the material fade in animation
ratio({double dividedBy = 1, double reducedByW = 0.0, double reducedByH = 0.0}) double
Divide the height proportionally by the given value
widthTransformer({double dividedBy = 1, double reducedBy = 0.0}) double
Gives you the power to get a portion of the width. Useful for responsive applications.