v0.1.3hotspot
简单的旅行、教练标记和教程。只需标记您的小部件即可!
158喜欢 112近 30 天下载150Pub 分数
AndroidiOSWebmacOSWindowsLinux
简单的旅行、教练标记和教程。只需标记您的小部件即可!
以下为英文项目原文快照,最新内容请访问 GitHub。
The simplest way to make beautiful tours, coachmarks, and tutorials.
Wrap your app, screen, or view with HotspotProvider
class HomeScreen extends StatelessWidget {
const HomeScreen({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return const HotspotProvider(
child: Scaffold(
body: // ...
),
);
}
}
Add hotspot callouts to your widget tree
class Example extends StatelessWidget {
const Example({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return IconButton(
icon: const Icon(Icons.play_arrow),
onPressed: () {
// ...
},
).withHotspot(
order: 1,
title: 'Tour It!',
text: 'This is the first callout in the tour!',
);
}
}
Start a flow
HotspotProvider.of(context).startFlow()
依赖清单 3 项
{"sdk":"flutter"}^6.1.2{"sdk":"flutter"}先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗