Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
571834ea
Commit
571834ea
authored
Jan 28, 2017
by
Ian Hickson
Committed by
GitHub
Jan 28, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Indicate required fields in flutter_gallery demo. (#7717)
parent
c234d405
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
8 deletions
+12
-8
text_field_demo.dart
examples/flutter_gallery/lib/demo/text_field_demo.dart
+10
-6
data_table.dart
packages/flutter/lib/src/material/data_table.dart
+2
-2
No files found.
examples/flutter_gallery/lib/demo/text_field_demo.dart
View file @
571834ea
...
...
@@ -116,20 +116,20 @@ class TextFieldDemoState extends State<TextFieldDemo> {
new
TextField
(
icon:
new
Icon
(
Icons
.
person
),
hintText:
'What do people call you?'
,
labelText:
'Name'
,
labelText:
'Name
*
'
,
onSaved:
(
InputValue
val
)
{
person
.
name
=
val
.
text
;
},
validator:
_validateName
,
),
new
TextField
(
icon:
new
Icon
(
Icons
.
phone
),
hintText:
'Where can we reach you?'
,
labelText:
'Phone Number'
,
labelText:
'Phone Number
*
'
,
keyboardType:
TextInputType
.
phone
,
onSaved:
(
InputValue
val
)
{
person
.
phoneNumber
=
val
.
text
;
},
validator:
_validatePhoneNumber
,
),
new
TextField
(
hintText:
'Tell us about yourself
(optional)
'
,
hintText:
'Tell us about yourself'
,
labelText:
'Life story'
,
maxLines:
3
,
),
...
...
@@ -140,7 +140,7 @@ class TextFieldDemoState extends State<TextFieldDemo> {
child:
new
TextField
(
key:
_passwordFieldKey
,
hintText:
'How do you log in?'
,
labelText:
'New Password'
,
labelText:
'New Password
*
'
,
obscureText:
true
,
onSaved:
(
InputValue
val
)
{
person
.
password
=
val
.
text
;
}
)
...
...
@@ -149,7 +149,7 @@ class TextFieldDemoState extends State<TextFieldDemo> {
new
Expanded
(
child:
new
TextField
(
hintText:
'How do you log in?'
,
labelText:
'Re-type Password'
,
labelText:
'Re-type Password
*
'
,
obscureText:
true
,
validator:
_validatePassword
,
)
...
...
@@ -163,7 +163,11 @@ class TextFieldDemoState extends State<TextFieldDemo> {
child:
new
Text
(
'SUBMIT'
),
onPressed:
_handleSubmitted
,
),
)
),
new
Container
(
padding:
const
EdgeInsets
.
only
(
top:
20.0
),
child:
new
Text
(
'* indicates required field'
,
style:
Theme
.
of
(
context
).
textTheme
.
caption
),
),
]
)
)
...
...
packages/flutter/lib/src/material/data_table.dart
View file @
571834ea
...
...
@@ -596,12 +596,12 @@ class DataTable extends StatelessWidget {
/// Must have an ancestor [Material] widget in which to cause ink
/// reactions and an ancestor [Table] widget to establish a row.
///
/// The
TableRowInkWell
must be in the same coordinate space (modulo
/// The
[TableRowInkWell]
must be in the same coordinate space (modulo
/// translations) as the [Table]. If it's rotated or scaled or
/// otherwise transformed, it will not be able to describe the
/// rectangle of the row in its own coordinate system as a [Rect], and
/// thus the splash will not occur. (In general, this is easy to
/// achieve: just put the
TableRowInkWell
as the direct child of the
/// achieve: just put the
[TableRowInkWell]
as the direct child of the
/// [Table], and put the other contents of the cell inside it.)
class
TableRowInkWell
extends
InkResponse
{
/// Creates an ink well for a table row.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment