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
89987fc0
Commit
89987fc0
authored
Mar 14, 2016
by
Adam Barth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[rename fixit] TwoLevelSublist left->leading, center->title
parent
9bc4deed
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 @
89987fc0
...
...
@@ -15,7 +15,7 @@ class TwoLevelListDemo extends StatelessWidget {
items:
<
Widget
>[
new
TwoLevelListItem
(
title:
new
Text
(
'Top'
)),
new
TwoLevelSublist
(
center
:
new
Text
(
'Sublist'
),
title
:
new
Text
(
'Sublist'
),
children:
<
Widget
>[
new
TwoLevelListItem
(
title:
new
Text
(
'One'
)),
new
TwoLevelListItem
(
title:
new
Text
(
'Two'
)),
...
...
packages/flutter/lib/src/material/two_level_list.dart
View file @
89987fc0
...
...
@@ -50,10 +50,10 @@ class TwoLevelListItem extends StatelessWidget {
}
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
center
;
final
Widget
le
ading
;
final
Widget
title
;
final
List
<
Widget
>
children
;
_TwoLevelSublistState
createState
()
=>
new
_TwoLevelSublistState
();
...
...
@@ -108,10 +108,10 @@ class _TwoLevelSublistState extends State<TwoLevelSublist> {
children:
<
Widget
>[
new
TwoLevelListItem
(
onTap:
_handleOnTap
,
leading:
config
.
le
ft
,
leading:
config
.
le
ading
,
title:
new
DefaultTextStyle
(
style:
Theme
.
of
(
context
).
textTheme
.
subhead
.
copyWith
(
color:
_headerColor
.
evaluate
(
_easeInAnimation
)),
child:
config
.
center
child:
config
.
title
),
trailing:
new
RotationTransition
(
turns:
_iconTurns
,
...
...
packages/flutter/test/widget/two_level_list_test.dart
View file @
89987fc0
...
...
@@ -22,7 +22,7 @@ void main() {
new
TwoLevelListItem
(
title:
new
Text
(
'Top'
),
key:
topKey
),
new
TwoLevelSublist
(
key:
sublistKey
,
center
:
new
Text
(
'Sublist'
),
title
:
new
Text
(
'Sublist'
),
children:
<
Widget
>[
new
TwoLevelListItem
(
title:
new
Text
(
'0'
)),
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