v2.0.2flutter_onboarding_screen
一個 Flutter 套件,協助開發者建立應用程式的引導畫面。
26喜歡 70近 30 天下載135Pub 分數
AndroidiOSWebmacOSWindowsLinux
一個 Flutter 套件,協助開發者建立應用程式的引導畫面。
以下為英文專案原文快照,最新內容請造訪 GitHub。
A new Flutter package for both android and iOS which help developer in creating a onboarding screen of their app.
To use this package :
dependencies:
flutter:
sdk: flutter
flutter_onboarding_screen:
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(
imagePath: "images/pic11.png",
title: "Search",
desc:"Discover restaurants by type of meal, See menus and photos for nearby restaurants and bookmark your favorite places on the go",
),
OnbordingData(
imagePath: "images/pic12.png",
title: "Order",
desc:"Best restaurants delivering to your doorstep, Browse menus and build your order in seconds",
),
OnbordingData(
imagePath: "images/pic13.png",
title: "Eat",
desc:"Explore curated lists of top restaurants, cafes, pubs, and bars in Mumbai, based on trends.",
),
];
@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 new IntroScreen(list,MaterialPageRoute(builder: (context) => NextScreen()),
);
}
}
依賴清單 2 項
{"sdk":"flutter"}{"sdk":"flutter"}先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗