Skip to content

Commit c3dd164

Browse files
author
fuzzagrosner
committed
[Readme] reference screenshots on widgets, add more.
1 parent c951843 commit c3dd164

File tree

6 files changed

+34
-0
lines changed

6 files changed

+34
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,24 +78,42 @@ Now you replace widgets that are included in this library with their "P" counter
7878

7979
`FlatButton`/`CupertinoButton` -> `PFlatButton`
8080

81+
![Material Flat Button](/screenshots/androidflat.png)
82+
![Cupertino Flat Button](/screenshots/iosflat.png)
83+
8184
`AppBar`/`CupertinoNavigationBar` -> `PNavigationBar`
8285

86+
![Android Nav](/screenshots/androidnav.png)
87+
![iOS Nav](/screenshots/iosnav.png)
88+
8389
`SliverAppBar`/`CupertinoSliverNavigationBar` -> `PSliverNavigationBar`
8490

8591
`Slider`/`CupertinoSlider` -> `PSlider`
8692

93+
![Sliders](/screenshots/sliders.png)
94+
8795
`Switch`/`CupertinoSwitch` -> `PSwitch`
8896

97+
![Switch](/screenshots/switches.png)
98+
8999
`BottomNavigationBar`/`CupertinoTabBar` -> `PTabBar`
90100

101+
![Bottom Navigation Android](/screenshots/androidtabs.png)
102+
![Bottom Navigation iOS](/screenshots/iostabs.png)
103+
91104
`Scaffold`/`CupertinoScaffold` -> `PScaffold`
92105

93106
`CircularProgressIndicator`/`CupertinoActivityIndicator` -> `PActivityIndicator`
94107

108+
![Progress](/screenshots/progress.png)
109+
95110
`BackButton`/`CupertinoNavigationBarBackButton` -> `PBackButton`
96111

97112
`AlertDialog`/`CupertinoAlertDialog` -> `PAlertDialog`
98113

114+
![Android Alert](/screenshots/androidalert.png)
115+
![Ios Alert](/screenshots/iosalert.png)
116+
99117
### Properties Specific to a platform have a prefix
100118
Any widgets that have ios-only or android-only counterparts, they are prefixed to `android`/`ios` accordingly:
101119

example/lib/button_page.dart

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,22 @@ class ButtonPage extends StatelessWidget {
4040
renderPlatform: TargetPlatform.iOS,
4141
onPressed: () {},
4242
),
43+
PFlatButton(
44+
child: Text("Flat Platform Button"),
45+
onPressed: () {},
46+
),
47+
PTheme.android(
48+
PFlatButton(
49+
child: Text("Android Flat Button"),
50+
onPressed: () {},
51+
),
52+
),
53+
PTheme.ios(
54+
PFlatButton(
55+
child: Text("iOS Flat Button"),
56+
onPressed: () {},
57+
),
58+
),
4359
],
4460
),
4561
],

screenshots/androidflat.png

5.92 KB
Loading

screenshots/androidnav.png

15.3 KB
Loading

screenshots/iosflat.png

6.1 KB
Loading

screenshots/iosnav.png

14.2 KB
Loading

0 commit comments

Comments
 (0)