flutter_walkthrough_screen
開発者がアプリのカスタマイズされたオンボーディング画面を作成するのを支援するFlutterパッケージです。
- スター
- 5
- フォーク
- 2
- 最終プッシュ(UTC)
- 2021/08/14
- プロジェクト状態
- 公開中
元の README
以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。
Flutter Walkthrough Screen
A flutter package which help developer in creating a customize onboarding screens of their app.
Screenshots
Usage
To use this package :
- add the dependency to your pubspec.yaml file.
dependencies:
flutter:
sdk: flutter
flutter_walkthrough_screen:
How to use
class TestScreen extends StatelessWidget {
/*here we have a list of OnbordingScreen which we want to have, each OnbordingScreen have a imagePath,title and an desc.
*/
final List<OnbordingData> list = [
OnbordingData(
image: AssetImage("images/pic1.png"),
titleText:Text("This is Title1"),
descText: Text("This is desc1"),
),
OnbordingData(
image: AssetImage("images/pic2.png"),
titleText:Text("This is Title2"),
descText: Text("This is desc2"),
),
OnbordingData(
image: AssetImage("images/pic3.png"),
titleText:Text("This is Title3"),
descText: Text("This is desc4"),
),
OnbordingData(
image: AssetImage("images/pic4.png"),
titleText:Text("This is Title4"),
descText: Text("This is desc4"),
),
];
@override
Widget build(BuildContext context) {
/* remove the back button in the AppBar is to set automaticallyImplyLeading to false
here we need to pass the list and the route for the next page to be opened after this. */
return IntroScreen(
onbordingDataList: list,
colors: [
//list of colors for per pages
Colors.white,
Colors.red,
],
pageRoute: MaterialPageRoute(
builder: (context) => NextPage(),
),
nextButton: Text(
"NEXT",
style: TextStyle(
color: Colors.purple,
),
),
lastButton: Text(
"GOT IT",
style: TextStyle(
color: Colors.purple,
),
),
skipButton: Text(
"SKIP",
style: TextStyle(
color: Colors.purple,
),
),
selectedDotColor: Colors.orange,
unSelectdDotColor: Colors.grey,
);
}
}
Customize your onboarding screen design
| Background color | Background gradient color |
|---|---|
![]() |
![]() |
| Last page button | Next page button |
|---|---|
![]() |
![]() |
| Skip button | Define next page route |
|---|---|
![]() |
![]() |
| Selected dot Color | Unselected dot Color |
|---|---|
![]() |
![]() |
Created & Maintained By
言語Dart
カテゴリー
使用している依存関係
依存関係一覧 2 件
- flutter
{"sdk":"flutter"} - flutter_test開発用
{"sdk":"flutter"}
プロジェクトに合うリポジトリを選ぶには?
用途で絞り込み、開発状況を比較し、採用前に元のリポジトリで要件を確認しましょう。
- 名前・作者・説明で検索し、技術トピックで絞り込みます。
- スター、フォーク、最近のプッシュを比較します。スターは関心の目安であり、品質の保証ではありません。
- 利用前に GitHub で README、ライセンス、Issues を確認します。
情報源と管理
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗








