See how to add a reusable button widget to your flutter game which can clear out all the user's data that's locally stored in hive. This example will use Riverpod to assist with updating the UI and calling the functions.
📲 Download The Finished Game: https://lastbottle.app
🎮 Series Playlist: • 2D Flutter Game With Flame
😻 Complete Code: https://github.com/davefaliskie/go_gr...
🤑 GET 10% OFF iubenda Privacy Policy: https://iubenda.refr.cc/1manstartup
💬 Join the Discord: https://1manstartup.com/discord
😎 If you enjoy the videos, consider supporting the channel: https://1manstartup.com/donate
SECTIONS:
0:00 - Creating Button UI
1:28 - Adding Confirmation Dialog
2:26 - Adding Reset Game Logic
3:16 - Reactively Update UI With Change
#flutter #gamedev