Showing
1 changed file
with
6 additions
and
0 deletions
@@ -180,6 +180,12 @@ Get.bottomSheet( | @@ -180,6 +180,12 @@ Get.bottomSheet( | ||
180 | ); | 180 | ); |
181 | ``` | 181 | ``` |
182 | 182 | ||
183 | +### Do you use another function that depends on the context? Get can give you the context of the current screen too! | ||
184 | +Use Get.context rather context | ||
185 | + | ||
186 | +- Note: this does not work with certain InheritedWidgets. | ||
187 | +99% of the cases, this will work well, but if Get.context doesn't work, it means that you are trying to use widgets that should be on your tree, outside of it. Get.context will work for ALL cases where it is appropriate. | ||
188 | + | ||
183 | 189 | ||
184 | ### That's it, you've learned how to navigate between routes the default way. | 190 | ### That's it, you've learned how to navigate between routes the default way. |
185 | 191 |
-
Please register or login to post a comment