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
cb620718
Commit
cb620718
authored
Mar 14, 2016
by
Adam Barth
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2669 from abarth/two_level
[rename fixit] TwoLevelSublist left->leading, center->title
parents
9bc4deed
89987fc0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
two_level_list_demo.dart
examples/material_gallery/lib/demo/two_level_list_demo.dart
+1
-1
two_level_list.dart
packages/flutter/lib/src/material/two_level_list.dart
+5
-5
two_level_list_test.dart
packages/flutter/test/widget/two_level_list_test.dart
+1
-1
No files found.
examples/material_gallery/lib/demo/two_level_list_demo.dart
View file @
cb620718
...
@@ -15,7 +15,7 @@ class TwoLevelListDemo extends StatelessWidget {
...
@@ -15,7 +15,7 @@ class TwoLevelListDemo extends StatelessWidget {
items:
<
Widget
>[
items:
<
Widget
>[
new
TwoLevelListItem
(
title:
new
Text
(
'Top'
)),
new
TwoLevelListItem
(
title:
new
Text
(
'Top'
)),
new
TwoLevelSublist
(
new
TwoLevelSublist
(
center
:
new
Text
(
'Sublist'
),
title
:
new
Text
(
'Sublist'
),
children:
<
Widget
>[
children:
<
Widget
>[
new
TwoLevelListItem
(
title:
new
Text
(
'One'
)),
new
TwoLevelListItem
(
title:
new
Text
(
'One'
)),
new
TwoLevelListItem
(
title:
new
Text
(
'Two'
)),
new
TwoLevelListItem
(
title:
new
Text
(
'Two'
)),
...
...
packages/flutter/lib/src/material/two_level_list.dart
View file @
cb620718
...
@@ -50,10 +50,10 @@ class TwoLevelListItem extends StatelessWidget {
...
@@ -50,10 +50,10 @@ class TwoLevelListItem extends StatelessWidget {
}
}
class
TwoLevelSublist
extends
StatefulWidget
{
class
TwoLevelSublist
extends
StatefulWidget
{
TwoLevelSublist
({
Key
key
,
this
.
le
ft
,
this
.
center
,
this
.
children
})
:
super
(
key:
key
);
TwoLevelSublist
({
Key
key
,
this
.
le
ading
,
this
.
title
,
this
.
children
})
:
super
(
key:
key
);
final
Widget
le
ft
;
final
Widget
le
ading
;
final
Widget
center
;
final
Widget
title
;
final
List
<
Widget
>
children
;
final
List
<
Widget
>
children
;
_TwoLevelSublistState
createState
()
=>
new
_TwoLevelSublistState
();
_TwoLevelSublistState
createState
()
=>
new
_TwoLevelSublistState
();
...
@@ -108,10 +108,10 @@ class _TwoLevelSublistState extends State<TwoLevelSublist> {
...
@@ -108,10 +108,10 @@ class _TwoLevelSublistState extends State<TwoLevelSublist> {
children:
<
Widget
>[
children:
<
Widget
>[
new
TwoLevelListItem
(
new
TwoLevelListItem
(
onTap:
_handleOnTap
,
onTap:
_handleOnTap
,
leading:
config
.
le
ft
,
leading:
config
.
le
ading
,
title:
new
DefaultTextStyle
(
title:
new
DefaultTextStyle
(
style:
Theme
.
of
(
context
).
textTheme
.
subhead
.
copyWith
(
color:
_headerColor
.
evaluate
(
_easeInAnimation
)),
style:
Theme
.
of
(
context
).
textTheme
.
subhead
.
copyWith
(
color:
_headerColor
.
evaluate
(
_easeInAnimation
)),
child:
config
.
center
child:
config
.
title
),
),
trailing:
new
RotationTransition
(
trailing:
new
RotationTransition
(
turns:
_iconTurns
,
turns:
_iconTurns
,
...
...
packages/flutter/test/widget/two_level_list_test.dart
View file @
cb620718
...
@@ -22,7 +22,7 @@ void main() {
...
@@ -22,7 +22,7 @@ void main() {
new
TwoLevelListItem
(
title:
new
Text
(
'Top'
),
key:
topKey
),
new
TwoLevelListItem
(
title:
new
Text
(
'Top'
),
key:
topKey
),
new
TwoLevelSublist
(
new
TwoLevelSublist
(
key:
sublistKey
,
key:
sublistKey
,
center
:
new
Text
(
'Sublist'
),
title
:
new
Text
(
'Sublist'
),
children:
<
Widget
>[
children:
<
Widget
>[
new
TwoLevelListItem
(
title:
new
Text
(
'0'
)),
new
TwoLevelListItem
(
title:
new
Text
(
'0'
)),
new
TwoLevelListItem
(
title:
new
Text
(
'1'
))
new
TwoLevelListItem
(
title:
new
Text
(
'1'
))
...
...
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