BuildContextExt extension
- on
Properties
- focus → FocusScopeNode
-
Returns the FocusScopeNode of the FocusScope that most tightly
encloses the given context.
no setter
-
The state from the closest instance of this class that encloses the given
context.
no setter
- query → MediaQueryData
-
Contains information about the current media.
no setter
- textTheme → TextTheme
-
Text with a color that contrasts with the card and canvas colors.
no setter
- theme → ThemeData
-
The data from the closest Theme instance that encloses the given
context.
no setter
Methods
-
hideKeyboard(
) → void - Hide the soft keyboard off the screen.
-
pop<
T> ([T? result]) → T? - Pop the top-most route off the navigator.
-
showAlertDialog(
{String? title, required String message, dynamic closeButtonTitle = "OK"}) → Future - Show a simple dialog with title, message and a close button.