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
6af9e6c9
Commit
6af9e6c9
authored
Mar 25, 2016
by
Hixie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RenderTable
parent
8cbeb2e9
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
935 additions
and
0 deletions
+935
-0
rendering.dart
packages/flutter/lib/rendering.dart
+1
-0
table.dart
packages/flutter/lib/src/rendering/table.dart
+875
-0
print.dart
packages/flutter/lib/src/services/print.dart
+1
-0
table_test.dart
packages/flutter/test/rendering/table_test.dart
+58
-0
No files found.
packages/flutter/lib/rendering.dart
View file @
6af9e6c9
...
...
@@ -44,6 +44,7 @@ export 'src/rendering/rotated_box.dart';
export
'src/rendering/semantics.dart'
;
export
'src/rendering/shifted_box.dart'
;
export
'src/rendering/stack.dart'
;
export
'src/rendering/table.dart'
;
export
'src/rendering/view.dart'
;
export
'src/rendering/viewport.dart'
;
...
...
packages/flutter/lib/src/rendering/table.dart
0 → 100644
View file @
6af9e6c9
This diff is collapsed.
Click to expand it.
packages/flutter/lib/src/services/print.dart
View file @
6af9e6c9
...
...
@@ -14,6 +14,7 @@ import 'dart:collection';
/// [debugDumpApp]) and to the Dart [print] method can result in out-of-order
/// messages in the logs.
void
debugPrint
(
String
message
)
{
print
(
message
);
_debugPrintBuffer
.
addAll
(
message
.
split
(
'
\n
'
));
if
(!
_debugPrintScheduled
)
_debugPrintTask
();
...
...
packages/flutter/test/rendering/table_test.dart
0 → 100644
View file @
6af9e6c9
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import
'package:flutter/rendering.dart'
;
import
'package:test/test.dart'
;
import
'rendering_tester.dart'
;
RenderBox
sizedBox
(
double
width
,
double
height
)
{
return
new
RenderConstrainedBox
(
additionalConstraints:
new
BoxConstraints
.
tight
(
new
Size
(
width
,
height
))
);
}
void
main
(
)
{
test
(
'Table control test; tight'
,
()
{
RenderTable
table
;
layout
(
table
=
new
RenderTable
());
expect
(
table
.
size
.
width
,
equals
(
800.0
));
expect
(
table
.
size
.
height
,
equals
(
600.0
));
});
test
(
'Table control test; loose'
,
()
{
RenderTable
table
;
layout
(
new
RenderPositionedBox
(
child:
table
=
new
RenderTable
()));
expect
(
table
.
size
,
equals
(
const
Size
(
800.0
,
0.0
)));
});
test
(
'Table test: combinations'
,
()
{
RenderTable
table
;
layout
(
new
RenderPositionedBox
(
child:
table
=
new
RenderTable
(
columns:
5
,
rows:
5
,
defaultColumnWidth:
const
IntrinsicColumnWidth
(),
defaultVerticalAlignment:
TableCellVerticalAlignment
.
baseline
,
textBaseline:
TextBaseline
.
alphabetic
)));
expect
(
table
.
size
,
equals
(
const
Size
(
800.0
,
0.0
)));
table
.
setChild
(
2
,
4
,
sizedBox
(
100.0
,
200.0
));
pumpFrame
();
expect
(
table
.
size
,
equals
(
new
Size
(
800.0
,
200.0
)));
table
.
setChild
(
0
,
0
,
sizedBox
(
10.0
,
30.0
));
table
.
setChild
(
1
,
0
,
sizedBox
(
20.0
,
20.0
));
table
.
setChild
(
2
,
0
,
sizedBox
(
30.0
,
10.0
));
pumpFrame
();
expect
(
table
.
size
,
equals
(
new
Size
(
800.0
,
230.0
)));
});
}
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