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
ba3930cc
Commit
ba3930cc
authored
Feb 17, 2016
by
Hans Muller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed grid layout padding and inter row/column spacing
parent
5960a134
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
105 additions
and
50 deletions
+105
-50
grid.dart
packages/flutter/lib/src/rendering/grid.dart
+84
-50
basic.dart
packages/flutter/lib/src/widgets/basic.dart
+21
-0
No files found.
packages/flutter/lib/src/rendering/grid.dart
View file @
ba3930cc
This diff is collapsed.
Click to expand it.
packages/flutter/lib/src/widgets/basic.dart
View file @
ba3930cc
...
...
@@ -22,6 +22,7 @@ export 'package:flutter/rendering.dart' show
FlexJustifyContent
,
FractionalOffsetTween
,
GridDelegate
,
GridSpecification
,
HitTestBehavior
,
MaxTileWidthGridDelegate
,
MultiChildLayoutDelegate
,
...
...
@@ -1192,6 +1193,8 @@ class FixedColumnCountGrid extends GridRenderObjectWidgetBase {
Key
key
,
List
<
Widget
>
children:
_emptyWidgetList
,
this
.
columnCount
,
this
.
columnSpacing
,
this
.
rowSpacing
,
this
.
tileAspectRatio
:
1.0
,
this
.
padding
:
EdgeDims
.
zero
})
:
super
(
key:
key
,
children:
children
)
{
...
...
@@ -1201,6 +1204,12 @@ class FixedColumnCountGrid extends GridRenderObjectWidgetBase {
/// The number of columns in the grid.
final
int
columnCount
;
/// The horizontal distance between columns.
final
double
columnSpacing
;
/// The vertical distance between rows.
final
double
rowSpacing
;
/// The ratio of the width to the height of each tile in the grid.
final
double
tileAspectRatio
;
...
...
@@ -1210,6 +1219,8 @@ class FixedColumnCountGrid extends GridRenderObjectWidgetBase {
FixedColumnCountGridDelegate
createDelegate
()
{
return
new
FixedColumnCountGridDelegate
(
columnCount:
columnCount
,
columnSpacing:
columnSpacing
,
rowSpacing:
rowSpacing
,
tileAspectRatio:
tileAspectRatio
,
padding:
padding
);
...
...
@@ -1224,6 +1235,8 @@ class MaxTileWidthGrid extends GridRenderObjectWidgetBase {
Key
key
,
List
<
Widget
>
children:
_emptyWidgetList
,
this
.
maxTileWidth
,
this
.
columnSpacing
,
this
.
rowSpacing
,
this
.
tileAspectRatio
:
1.0
,
this
.
padding
:
EdgeDims
.
zero
})
:
super
(
key:
key
,
children:
children
)
{
...
...
@@ -1236,6 +1249,12 @@ class MaxTileWidthGrid extends GridRenderObjectWidgetBase {
/// The ratio of the width to the height of each tile in the grid.
final
double
tileAspectRatio
;
/// The horizontal distance between columns.
final
double
columnSpacing
;
/// The vertical distance between rows.
final
double
rowSpacing
;
/// The amount of padding to apply to each child.
final
EdgeDims
padding
;
...
...
@@ -1243,6 +1262,8 @@ class MaxTileWidthGrid extends GridRenderObjectWidgetBase {
return
new
MaxTileWidthGridDelegate
(
maxTileWidth:
maxTileWidth
,
tileAspectRatio:
tileAspectRatio
,
columnSpacing:
columnSpacing
,
rowSpacing:
rowSpacing
,
padding:
padding
);
}
...
...
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