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).colorSchemeno setter - l10nCupertino → CupertinoLocalizations
-
Available on BuildContext, provided by the ContextLeanExtensions extension
Shorthand for CupertinoLocalizations.ofno setter - l10nMaterial → MaterialLocalizations
-
Available on BuildContext, provided by the ContextLeanExtensions extension
Shorthand for MaterialLocalizations.ofno setter - l10nWidgets → WidgetsLocalizations
-
Available on BuildContext, provided by the ContextLeanExtensions extension
Shorthand for WidgetsLocalizations.ofno setter - mediaHeight → double
-
Available on BuildContext, provided by the ContextLeanExtensions extension
Returns the current screen heightno 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.ofno setter - mediaSize → Size
-
Available on BuildContext, provided by the ContextLeanExtensions extension
Returns the current screen Sizeno 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 widthno setter - textTheme → TextTheme
-
Available on BuildContext, provided by the ContextLeanExtensions extension
Shorthand for Theme.of(this).textThemeno setter - theme → ThemeData
-
Available on BuildContext, provided by the ContextLeanExtensions extension
Shorthand for Theme.ofno setter