Flutter - Display the SnackBar using the GlobalKey

Поділитися
Вставка
  • Опубліковано 2 лис 2024

КОМЕНТАРІ • 9

  • @cristianperesdelima7402
    @cristianperesdelima7402 5 років тому +2

    incredible video, not even in the documentation is so clear. Thank you. Hi here from Brazil.

  • @kishanv9879
    @kishanv9879 6 років тому +1

    Searched everywhere but the answer is here. Great explanation on global keys.

  • @MrVinaykaushik
    @MrVinaykaushik Місяць тому

    still relevant.. thank you

  • @tomaszkuklis4357
    @tomaszkuklis4357 6 років тому +6

    Brandon, thanks for the video. I'm just starting with flutter and wondering why we couldn't just use `Scaffold.of(context).showSnackBar()` here ? Best

    • @laujimmy8635
      @laujimmy8635 4 роки тому

      You can, however, you will need to use a Builder to wrap around the Scaffold and use the context given by the Builder => build: (context) to display the snackBar.
      stackoverflow.com/questions/51304568/scaffold-of-called-with-a-context-that-does-not-contain-a-scaffold

  • @kennethn.9960
    @kennethn.9960 5 років тому

    Great tutorial.
    Thanks Brandon

  • @Cajaba100
    @Cajaba100 4 роки тому

    Great video, I from Brazil, how can i put validator in the fields implying that I move to the next screen?

  • @thepiratescookbook4017
    @thepiratescookbook4017 3 роки тому

    great pace

  • @kishanv9879
    @kishanv9879 6 років тому +1

    Please post a video how to efficiently use global keys