Enables running the `layers` example on Linux and Windows. Part of https://github.com/flutter/flutter/issues/126033
Adds macOS support to the layers examples collection. Issue: https://github.com/flutter/flutter/issues/84306