FlafyDev / wayland_shell

MIT License
1 stars 1 forks source link

Exclusive zone widget #4

Open darkwater opened 1 month ago

darkwater commented 1 month ago

There should be a widget to represent the exclusive zone, eg. for fullscreen overlays.

My current implementation is a widget that listens to its laid out height, and updates the exclusive zone appropriately. Some ways we could improve this:

Stack(
  children: [
    ExclusiveZone(
      edge: ShellEdge.bottom,
      child: SizedBox(
        height: 64,
        child: ...
      ),
    ),
  ],
)