Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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