flutter_floatwing

一个Flutter插件,允许开发者完全使用Flutter开发Android浮动窗口,无需原生Android开发背景。

项目推荐- 项目地址:https://github.com/jiusanzhou/flutter_floatwing- 项目后续更新计划: - Features: 支持位置移动的动画 - Features: 支持拖拽锚点设置 - Improve: 增加事件订阅优化性能- 项目描述:该Flutter插件可以让开发者完全使用Flutter来开发Android的浮动窗口。- 推荐理由:一个可以用纯粹的Flutter来开发Android浮动窗口的插件。目前社区内没有一款好用的插件来支持该功能,该插件能够让Flutter开发者完全使用Flutter来完成浮动窗口的功能开发,同时无需任何原生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| |:-:|:-:|:-:| ||||