ContextLeanExtensions extension

Adds extension methods on BuildContext to simplify access to common inherited widgets.

on

Properties

colorScheme ColorScheme

Available on BuildContext, provided by the ContextLeanExtensions extension

Shorthand for Theme.of(this).colorScheme
no setter
l10nCupertino CupertinoLocalizations

Available on BuildContext, provided by the ContextLeanExtensions extension

Shorthand for CupertinoLocalizations.of
no setter
l10nMaterial MaterialLocalizations

Available on BuildContext, provided by the ContextLeanExtensions extension

Shorthand for MaterialLocalizations.of
no setter
l10nWidgets WidgetsLocalizations

Available on BuildContext, provided by the ContextLeanExtensions extension

Shorthand for WidgetsLocalizations.of
no setter
mediaHeight double

Available on BuildContext, provided by the ContextLeanExtensions extension

Returns the current screen height
no setter
mediaPadding EdgeInsets

Available on BuildContext, provided by the ContextLeanExtensions extension

Returns the system screen padding (e.g. for safe area calculations)
no setter
mediaQuery MediaQueryData

Available on BuildContext, provided by the ContextLeanExtensions extension

Shorthand for MediaQuery.of
no setter
mediaSize Size

Available on BuildContext, provided by the ContextLeanExtensions extension

Returns the current screen Size
no setter
mediaViewInsets EdgeInsets

Available on BuildContext, provided by the ContextLeanExtensions extension

Returns the system screen view insets (e.g. for keyboard detection)
no setter
mediaWidth double

Available on BuildContext, provided by the ContextLeanExtensions extension

Returns the current screen width
no setter
textTheme TextTheme

Available on BuildContext, provided by the ContextLeanExtensions extension

Shorthand for Theme.of(this).textTheme
no setter
theme ThemeData

Available on BuildContext, provided by the ContextLeanExtensions extension

Shorthand for Theme.of
no setter