walkthrough 0.0.1 walkthrough: ^0.0.1 copied to clipboard
A new Flutter package which helps developers in creating walkthrough of their app.
flutterwalkthrough #
A new Flutter package for both android and iOS which helps developers in creating animated walkthrough of their app.
Usage #
To use this package:
- add the dependency to your pubspec.yaml file.
dependencies:
flutter:
sdk: flutter
flutterwalkthrough:
How to use #
class TestScreen extends StatelessWidget {
/*here we have a list of walkthroughs which we want to have,
each walkthrough has a title, content and an icon
*/
final List<Walkthrough> list = [
Walkthrough(
title: "Title 1",
content: "Content 1",
imageIcon: Icons.restaurant_menu,
),
Walkthrough(
title: "Title 2",
content: "Content 2",
imageIcon: Icons.search,
),
Walkthrough(
title: "Title 3",
content: "Content 3",
imageIcon: Icons.shopping_cart,
),
Walkthrough(
title: "Title 4",
content: "Content 4",
imageIcon: Icons.verified_user,
),
];
@override
Widget build(BuildContext context) {
//here we need to pass the list and route for the next page to be opened after this
return IntroScreen(
list,
MaterialPageRoute(builder: (context) => TestScreen()),
);
}
}
Getting Started #
This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.