flutter_walkthrough
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
flutter_walkthrough:
how to use
class testscreen extends statelesswidget {
/*here we have a list of walkthroughs which we want to have,
each walkthrough have 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 the route for the next page to be opened after this.
return new introscreen(
list,
new materialpageroute(builder: (context) => new testscreen()),
);
}
}
pull requests
i welcome and encourage all pull requests. it usually will take me within 24-48 hours to respond to any issue or request. here are some basic rules to follow to ensure timely addition of your request:
- match coding style (braces, spacing, etc.) this is best achieved using
reformat code
feature of android studiocmd
+option
+l
on mac andctrl
+alt
+l
on linux + windows . - if its a feature, bugfix, or anything please only change code to what you specify.
- please keep pr titles easy to read and descriptive of changes, this will make them easier to merge 🙂
- pull requests must be made against
develop
branch. any other branch (unless specified by the maintainers) will get rejected. - check for existing issues first, before filing an issue.
- make sure you follow the set standard as all other projects in this repo do
- have fun!
Comments are closed.