Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
Navigate Between Flame Game & Flutter App Using Callbacks
Play lesson

2D Flutter Game With Flame - Navigate Between Flame Game & Flutter App Using Callbacks

5.0 (3)
23 learners

What you'll learn

This course includes

  • 2.5 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

Use a callback to pass data from a flame game to flutter's material app. This is useful for navigation since the flame game doesn't have access to the build context, you can utilize the callback to tell the material app to preform navigation. Additionally, you can pass data values such as a game end state from the flame game back to the material app. This can be useful for displaying different end screens based on the outcome of the flame game. Overall, this setup is useful because you can use a flame game for actual game play and collisions but use traditional material app screens for other screens such as menus and end screens. 📲 Download The Finished Game: https://lastbottle.app 🎮 Series Playlist: https://youtube.com/playlist?list=PL_D-RntzgLvYIxI_Kuwy1f7HedxTF2GPK&si=yEyLASOci9CKl4sq 😻 Complete Code: https://github.com/davefaliskie/go_green/tree/end_screens 🤑 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 - What We'll Build 0:35 - Creating End Screen 2:36 - Setting Up End Game Callback 4:48 - Passing Data To The Material App #flutter #gamedev

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere