mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-30 03:19:11 +08:00
Add a second OnBoarding Page
This commit is contained in:
BIN
assets/OnBoardingMarkdown.png
Normal file
BIN
assets/OnBoardingMarkdown.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 71 KiB |
@ -32,7 +32,7 @@ class OnBoardingScreenState extends State<OnBoardingScreen> {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
var pages = <Widget>[
|
var pages = <Widget>[
|
||||||
OnBoardingPage1(),
|
OnBoardingPage1(),
|
||||||
_buildPage("Page 2"),
|
OnBoardingPage2(),
|
||||||
_buildPage("Page 3"),
|
_buildPage("Page 3"),
|
||||||
];
|
];
|
||||||
var pageView = PageView(
|
var pageView = PageView(
|
||||||
@ -191,3 +191,38 @@ class OnBoardingPage1 extends StatelessWidget {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class OnBoardingPage2 extends StatelessWidget {
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
var textTheme = Theme.of(context).textTheme;
|
||||||
|
var header = Column(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
|
children: <Widget>[
|
||||||
|
Image.asset(
|
||||||
|
'assets/OnBoardingMarkdown.png',
|
||||||
|
//height: 200,
|
||||||
|
fit: BoxFit.fill,
|
||||||
|
),
|
||||||
|
SizedBox(height: 16.0),
|
||||||
|
],
|
||||||
|
);
|
||||||
|
|
||||||
|
return Container(
|
||||||
|
child: Column(
|
||||||
|
children: <Widget>[
|
||||||
|
Center(child: header),
|
||||||
|
SizedBox(height: 64.0),
|
||||||
|
Text(
|
||||||
|
"Your Journal Entries are stored in a standard Markdown + YAML Header format",
|
||||||
|
style: textTheme.headline,
|
||||||
|
textAlign: TextAlign.center,
|
||||||
|
),
|
||||||
|
],
|
||||||
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -34,6 +34,7 @@ flutter:
|
|||||||
- "assets/icon/icon.png"
|
- "assets/icon/icon.png"
|
||||||
- "assets/icon/github-icon.png"
|
- "assets/icon/github-icon.png"
|
||||||
- "assets/icon/gitlab-icon.png"
|
- "assets/icon/gitlab-icon.png"
|
||||||
|
- "assets/OnBoardingMarkdown.png"
|
||||||
fonts:
|
fonts:
|
||||||
- family: Lato
|
- family: Lato
|
||||||
fonts:
|
fonts:
|
||||||
|
Reference in New Issue
Block a user