Skip to content

Commit

Permalink
fixed formatting, updated readme and added landscape preview
Browse files Browse the repository at this point in the history
  • Loading branch information
aagarwal1012 committed Jun 26, 2018
1 parent 7d5fa52 commit dec6d25
Show file tree
Hide file tree
Showing 7 changed files with 79 additions and 61 deletions.
121 changes: 67 additions & 54 deletions .idea/workspace.xml

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ You should then run `flutter packages get` in your terminal so as to get the pac
```
For further usage refer the [`example`](https://github.com/aagarwal1012/IntroViews-Flutter/tree/master/example/lib) available.

***Note :*** If you added more than four pages in the list then there can be overlapping between `page icons` and `skip button`, so my suggestion is just make the `showSkipButton: false`.
For `Landscape` preview click the [link](https://github.com/aagarwal1012/IntroViews-Flutter/blob/master/display/landscape2.png?raw=true).

***Note :*** If you added more than four pages in the list then there might be overlapping between `page icons` and `skip button`, so my suggestion is just make the `showSkipButton: false`.

# Documentation

Expand Down
Binary file removed display/landscape1.png
Binary file not shown.
Binary file added display/landscape2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified display/page3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class App extends StatelessWidget {
mainImageAssetPath: 'assets/taxi.png',
title: 'Cabs',
body:
'Easy cab booking at your doorstep with cashless payment system',
'Easy cab booking at your doorstep with cashless payment system',
iconImageAssetPath: 'assets/taxi-driver.png',
titleTextColor: Colors.white,
bodyTextColor: Colors.white,
Expand Down
13 changes: 8 additions & 5 deletions lib/UI/page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ class Page extends StatelessWidget {
return orientation == Orientation.portrait
? _buildPortraitPage()
: __buildLandscapePage();
}),
}), //OrientationBuilder
),
);
}

/// when device is Portraint place title, image and body in a column
/// when device is Portrait place title, image and body in a column
Widget _buildPortraitPage() {
return new Column(
mainAxisAlignment: MainAxisAlignment.start,
Expand Down Expand Up @@ -71,10 +71,10 @@ class Page extends StatelessWidget {
pageViewModel: pageViewModel), //Transform
new _BodyPageTransform(
percentVisible: percentVisible,
pageViewModel: pageViewModel), //Tran
pageViewModel: pageViewModel), //Transform
],
) // column,
)
) // Column
),
],
);
}
Expand All @@ -85,6 +85,7 @@ class _BodyPageTransform extends StatelessWidget {
final double percentVisible;

final PageViewModel pageViewModel;

const _BodyPageTransform({
Key key,
@required this.percentVisible,
Expand Down Expand Up @@ -117,6 +118,7 @@ class _ImagePageTransform extends StatelessWidget {
final double percentVisible;

final PageViewModel pageViewModel;

const _ImagePageTransform({
Key key,
@required this.percentVisible,
Expand Down Expand Up @@ -153,6 +155,7 @@ class _TitlePageTransform extends StatelessWidget {
final double percentVisible;

final PageViewModel pageViewModel;

const _TitlePageTransform({
Key key,
@required this.percentVisible,
Expand Down

0 comments on commit dec6d25

Please sign in to comment.