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
c8da3765
Commit
c8da3765
authored
May 04, 2018
by
Hans Muller
Committed by
Chris Bracken
May 04, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix flex_layout_test (#17313)
parent
f8d0d877
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
flex_layout.dart
examples/layers/rendering/flex_layout.dart
+4
-4
No files found.
examples/layers/rendering/flex_layout.dart
View file @
c8da3765
...
...
@@ -19,7 +19,7 @@ void main() {
textDirection:
TextDirection
.
ltr
,
);
table
.
add
(
new
RenderPadding
(
child:
paragraph
,
padding:
const
EdgeInsets
.
only
(
top:
20.0
)));
final
RenderFlex
row
=
new
RenderFlex
(
crossAxisAlignment:
crossAxisAlignment
,
textBaseline:
TextBaseline
.
alphabetic
);
final
RenderFlex
row
=
new
RenderFlex
(
crossAxisAlignment:
crossAxisAlignment
,
textBaseline:
TextBaseline
.
alphabetic
,
textDirection:
TextDirection
.
ltr
);
style
=
const
TextStyle
(
fontSize:
15.0
,
color:
const
Color
(
0xFF000000
));
row
.
add
(
new
RenderDecoratedBox
(
decoration:
const
BoxDecoration
(
color:
const
Color
(
0x7FFFCCCC
)),
...
...
@@ -36,7 +36,7 @@ void main() {
textDirection:
TextDirection
.
ltr
,
),
));
final
RenderFlex
subrow
=
new
RenderFlex
(
crossAxisAlignment:
crossAxisAlignment
,
textBaseline:
TextBaseline
.
alphabetic
);
final
RenderFlex
subrow
=
new
RenderFlex
(
crossAxisAlignment:
crossAxisAlignment
,
textBaseline:
TextBaseline
.
alphabetic
,
textDirection:
TextDirection
.
ltr
);
style
=
const
TextStyle
(
fontSize:
25.0
,
color:
const
Color
(
0xFF000000
));
subrow
.
add
(
new
RenderDecoratedBox
(
decoration:
const
BoxDecoration
(
color:
const
Color
(
0x7FCCCCFF
)),
...
...
@@ -65,7 +65,7 @@ void main() {
textDirection:
TextDirection
.
ltr
,
);
table
.
add
(
new
RenderPadding
(
child:
paragraph
,
padding:
const
EdgeInsets
.
only
(
top:
20.0
)));
final
RenderFlex
row
=
new
RenderFlex
(
direction:
Axis
.
horizontal
);
final
RenderFlex
row
=
new
RenderFlex
(
direction:
Axis
.
horizontal
,
textDirection:
TextDirection
.
ltr
);
row
.
add
(
new
RenderSolidColorBox
(
const
Color
(
0xFFFFCCCC
),
desiredSize:
const
Size
(
80.0
,
60.0
)));
row
.
add
(
new
RenderSolidColorBox
(
const
Color
(
0xFFCCFFCC
),
desiredSize:
const
Size
(
64.0
,
60.0
)));
row
.
add
(
new
RenderSolidColorBox
(
const
Color
(
0xFFCCCCFF
),
desiredSize:
const
Size
(
160.0
,
60.0
)));
...
...
@@ -83,7 +83,7 @@ void main() {
final
RenderDecoratedBox
root
=
new
RenderDecoratedBox
(
decoration:
const
BoxDecoration
(
color:
const
Color
(
0xFFFFFFFF
)),
child:
new
RenderPadding
(
child:
table
,
padding:
const
EdgeInsets
.
symmetric
(
vertical:
50.0
))
child:
new
RenderPadding
(
child:
table
,
padding:
const
EdgeInsets
.
symmetric
(
vertical:
50.0
))
,
);
new
RenderingFlutterBinding
(
root:
root
);
...
...
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