Skip to content

Instantly share code, notes, and snippets.

@CodingWithTashi
Created March 20, 2022 10:38
Show Gist options
  • Save CodingWithTashi/9b3946ad4c07adb8a1a7439d1b1b3a10 to your computer and use it in GitHub Desktop.
Save CodingWithTashi/9b3946ad4c07adb8a1a7439d1b1b3a10 to your computer and use it in GitHub Desktop.
CounterProvider counterProvider = Provider.of<CounterProvider>(context, listen: false); //make sure to put listent to false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment