FLUTTER ECOSYSTEM

aikenahac/app_tutorial

用於為您的應用程式建立引導流程的套件,以無縫方式向使用者解釋應用程式的功能。

app_tutorial 專案封面
Stars
3
Forks
10
最近推送(UTC)
2024年6月10日
專案狀態
未封存
Aiken Tine Ahac GitHub avatar
GITHUB User

Aiken Tine Ahac ↗

Co-Founder of @avarra. Software Developer @Preskok

@avarra & @preskokSlovenia官方網站 ↗
語言DartSwiftKotlinObjective-C

使用的依賴

依賴清單 2 項
  • flutter{"sdk":"flutter"}
  • flutter_test開發依賴{"sdk":"flutter"}

原始 README

以下為英文專案原文快照,最新內容請造訪 GitHub。

展開 / 收合專案 README

Flutter App Onboarding

roundedRectangle

Usage

Import the package into your pubspec.yaml

dependencies:
  app_tutorial: ^currentVersion

View the example project to see how to use the package.

Properties:
TutorialItem
Property Description Type Required Default value
globalKey The Global Key of the component you want to focus on GlobalKey yes /
child Widget to show on the screen when this item is active Widget yes /
color Color of the overlay Color? no Color.fromRGBO(0, 0, 0, 0.6)
borderRadius Radius of the border of the higlighted item Radius no Radius.circular(10.0)
radius Radius of the ShapeFocus.oval shape double? no null
shapeFocus Shape of the focus element ShapeFocus.oval, ShapeFocus.square, ShapeFocus.roundedSquare no ShapeFocus.roundedSquare
Tutorial
  • show() - the show () method, receives three parameters, the context, list of tutorial items you created and the onTutorialComplete callback.
Tutorial.showTutorial(context, items, onTutorialComplete: () {
  // Code to be executed after the tutorial ends
  print('Tutorial is complete!');
});
  • skipAll() - the skipAll() method receives the context parameter and ends the onboarding process
Tutorial.skipAll(context);
This package is a separated fork of this package.