build_context
build_context copied to clipboard
Add dialog support extensions
To show a dialog, we must add the context parameter to the function. It would be cool if we could show a dialog from the BuildContext.
For example:
Previous:
showDialog(
context: context,
....
);
Now:
context.showDialog(...);