Skip to content

Commit 865a611

Browse files
committed
[TextField] add obscure inputs example
1 parent b35b83e commit 865a611

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

example/lib/text_field_page.dart

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,30 @@ class TextFieldPage extends StatelessWidget {
130130
],
131131
),
132132
),
133+
buildSectionTitle("Obscure Inputs"),
134+
Padding(
135+
padding: const EdgeInsets.only(left: 8.0, right: 8.0),
136+
child: Row(
137+
children: <Widget>[
138+
Flexible(
139+
child: PTheme.android(
140+
PTextField(
141+
obscureText: true,
142+
decoration: basicInputDecoration("Android"),
143+
),
144+
),
145+
),
146+
Flexible(
147+
child: PTheme.ios(
148+
PTextField(
149+
obscureText: true,
150+
decoration: basicInputDecoration("iOS"),
151+
),
152+
),
153+
)
154+
],
155+
),
156+
),
133157
],
134158
),
135159
),

0 commit comments

Comments
 (0)