ContextBasicExtension extension

Provides basic getters for accessing fundamental properties from BuildContext.

on

Properties

colors ColorScheme

Available on BuildContext, provided by the ContextBasicExtension extension

Returns the current ColorScheme.
no setter
focusScope FocusScopeNode

Available on BuildContext, provided by the ContextBasicExtension extension

Returns the current FocusScopeNode.
no setter
isDarkMode bool

Available on BuildContext, provided by the ContextBasicExtension extension

Returns true if the current theme is dark.
no setter
isLandscape bool

Available on BuildContext, provided by the ContextBasicExtension extension

Returns true if the screen orientation is landscape.
no setter
isPortrait bool

Available on BuildContext, provided by the ContextBasicExtension extension

Returns true if the screen orientation is portrait.
no setter
locale Locale

Available on BuildContext, provided by the ContextBasicExtension extension

Returns the current device locale.
no setter
orientation Orientation

Available on BuildContext, provided by the ContextBasicExtension extension

Returns the current screen orientation.
no setter
screenHeight double

Available on BuildContext, provided by the ContextBasicExtension extension

Returns the height of the screen.
no setter
screenSize Size

Available on BuildContext, provided by the ContextBasicExtension extension

Returns the size of the screen.
no setter
screenWidth double

Available on BuildContext, provided by the ContextBasicExtension extension

Returns the width of the screen.
no setter
styles TextTheme

Available on BuildContext, provided by the ContextBasicExtension extension

Returns the current TextTheme.
no setter
theme ThemeData

Available on BuildContext, provided by the ContextBasicExtension extension

Returns the current Theme data.
no setter