Aleks
Aleks

Reputation: 83

How can you implement SafeArea for flame?

Heyo, i have been trying to look for a possibility to implement SafeArea (or something equal to that) in my flame game. I found this (https://github.com/ikbendewilliam/flutter_flame_architecture/blob/main/lib/src/widgets/flame_safe_area.dart) but I dont know how to fully implement this in the screen leading to the game enter image description here

Is there a simple solution for this issue I am missing?

Upvotes: 1

Views: 443

Answers (1)

spydon
spydon

Reputation: 11552

Since the GameWidget that you wrap your FlameGame in is just a normal Flutter widget you can put the GameWidget as a child of a SafeArea.

Upvotes: 4

Related Questions