flutter_floatwing
一个Flutter插件,允许开发者完全使用Flutter开发Android浮动窗口,无需原生Android开发背景。
一个Flutter插件,允许开发者完全使用Flutter开发Android浮动窗口,无需原生Android开发背景。
dart @override Widget build(BuildContext context) { return MaterialApp( debugShowCheckedModeBanner: false, initialRoute: "/", routes: { "/": (_) => HomePage(), // add a route as entrypoint for your overlay window. "/my-overlay-window": ((_) => MyOverlayWindow()).floatwing(), }, ); } void _startWindow() { // define window config and start the window from config. WindowConfig(route: "/my-overlay-window") .to() // create a window object .create(start: true); // create the window and start the overlay window. }
- 截图: |Night mode|Simpe example|Assistive touch mock| |:-:|:-:|:-:| |