ContextExtensions extension

on

Properties

accentColor Color

Available on BuildContext, provided by the ContextExtensions extension

Returns accentColor Color
no setter
cardColor Color

Available on BuildContext, provided by the ContextExtensions extension

Returns cardColor Color
no setter
defaultTextStyle DefaultTextStyle

Available on BuildContext, provided by the ContextExtensions extension

Returns DefaultTextStyle.of(context)
no setter
dividerColor Color

Available on BuildContext, provided by the ContextExtensions extension

Returns dividerColor Color
no setter
formState FormState?

Available on BuildContext, provided by the ContextExtensions extension

Returns Form.of(context)
no setter
iconColor Color

Available on BuildContext, provided by the ContextExtensions extension

Returns dividerColor Color
no setter

Available on BuildContext, provided by the ContextExtensions extension

Return the height of navigation bar
no setter
overlayState OverlayState?

Available on BuildContext, provided by the ContextExtensions extension

Returns Overlay.of(context)
no setter
primaryColor Color

Available on BuildContext, provided by the ContextExtensions extension

Returns primaryColor Color
no setter
scaffoldBackgroundColor Color

Available on BuildContext, provided by the ContextExtensions extension

Returns scaffoldBackgroundColor Color
no setter
scaffoldState ScaffoldState

Available on BuildContext, provided by the ContextExtensions extension

Returns Scaffold.of(context)
no setter
statusBarHeight double

Available on BuildContext, provided by the ContextExtensions extension

Return the height of status bar
no setter
textTheme TextTheme

Available on BuildContext, provided by the ContextExtensions extension

Returns Theme.of(context).textTheme
no setter
theme ThemeData

Available on BuildContext, provided by the ContextExtensions extension

Returns Theme.of(context)
no setter

Methods

height() double

Available on BuildContext, provided by the ContextExtensions extension

return screen height
isDesktop() bool

Available on BuildContext, provided by the ContextExtensions extension

isPhone() bool

Available on BuildContext, provided by the ContextExtensions extension

isTablet() bool

Available on BuildContext, provided by the ContextExtensions extension

pixelRatio() double

Available on BuildContext, provided by the ContextExtensions extension

return screen devicePixelRatio
platformBrightness() Brightness

Available on BuildContext, provided by the ContextExtensions extension

returns brightness
requestFocus(FocusNode focus) → void

Available on BuildContext, provided by the ContextExtensions extension

Request focus to given FocusNode
size() Size

Available on BuildContext, provided by the ContextExtensions extension

return screen size
unFocus(FocusNode focus) → void

Available on BuildContext, provided by the ContextExtensions extension

Request focus to given FocusNode
width() double

Available on BuildContext, provided by the ContextExtensions extension

return screen width