Skip to content

Instantly share code, notes, and snippets.

@vijayinyoutube
Created June 22, 2022 17:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vijayinyoutube/49d86cf9d75d6235b3ca26b28cdc458a to your computer and use it in GitHub Desktop.
Save vijayinyoutube/49d86cf9d75d6235b3ca26b28cdc458a to your computer and use it in GitHub Desktop.
Future<void> _changeOpacity() async {
setState(() => _visible = !_visible);
await Future.delayed(const Duration(milliseconds: 650));
setState(() => showPayBtn = !showPayBtn);
setState(() => _visible = !_visible);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment