Skip to content

Commit cdec9ed

Browse files
committed
fixed formatting issues, updated example, page buttons and readme
1 parent a3640cd commit cdec9ed

File tree

6 files changed

+120
-65
lines changed

6 files changed

+120
-65
lines changed

.idea/workspace.xml

Lines changed: 71 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,20 @@ You should then run `flutter packages get` in your terminal so as to get the pac
5050
```dart
5151
Final page = new PageViewModel(
5252
pageColor: const Color(0xFF607D8B),
53-
title: Text('Cabs'),
54-
mainImage: Image.asset('assets/taxi.png'),
55-
body: Text(
56-
'Easy cab booking at your doorstep with cashless payment system',
57-
),
58-
textStyle: TextStyle(fontFamily: 'MyFont'),
59-
iconImageAssetPath: 'assets/taxi-driver.png',
60-
bubbleBackgroundColor: Colors.white,
61-
iconColor: null,
53+
iconImageAssetPath: 'assets/taxi-driver.png',
54+
iconColor: null,
55+
bubbleBackgroundColor: null,
56+
body: Text(
57+
'Easy cab booking at your doorstep with cashless payment system',
58+
),
59+
title: Text('Cabs'),
60+
mainImage: Image.asset(
61+
'assets/taxi.png',
62+
height: 285.0,
63+
width: 285.0,
64+
alignment: Alignment.center,
65+
),
66+
textStyle: TextStyle(fontFamily: 'MyFont', color: Colors.white),
6267
);
6368
```
6469

@@ -76,7 +81,6 @@ You should then run `flutter packages get` in your terminal so as to get the pac
7681
fontSize: 18.0,
7782
fontFamily: "Regular",
7883
),
79-
8084
);
8185
```
8286
For further usage refer the [`example`](https://github.com/aagarwal1012/IntroViews-Flutter/tree/master/example/lib) available.
@@ -98,7 +102,7 @@ You should then run `flutter packages get` in your terminal so as to get the pac
98102
| iconImageAssetPath | String | Set the icon image asset path that would be displayed in page bubble. | Null |
99103
| iconColor | Color | Set the page bubble icon color. | Null |
100104
| bubbleBackgroundColor | Color | Set the page bubble background color. | Colors.white |
101-
| textStyle | TextStyle | set TextStyle for both title and body | title: `color: Colors.white , fontSize: 50.0` <br> body: `color: Colors.white , fontSize: 24.0` |
105+
| textStyle | TextStyle | Set TextStyle for both title and body | title: `color: Colors.white , fontSize: 50.0` <br> body: `color: Colors.white , fontSize: 24.0` |
102106

103107
### IntroViewFlutter Class
104108

0 commit comments

Comments
 (0)