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
20402ba7
Commit
20402ba7
authored
Feb 04, 2017
by
Adam Barth
Committed by
GitHub
Feb 04, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove MaxTileWidthGrid (#7875)
This widget has no clients. Please use GridView.extent instead.
parent
c7054b30
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
48 deletions
+0
-48
basic.dart
packages/flutter/lib/src/widgets/basic.dart
+0
-48
No files found.
packages/flutter/lib/src/widgets/basic.dart
View file @
20402ba7
...
...
@@ -1790,7 +1790,6 @@ class Positioned extends ParentDataWidget<Stack> {
/// such as:
///
/// * [FixedColumnCountGrid] (which creates a grid with a fixed number of columns)
/// * [MaxTileWidthGrid] (which creates a grid whose tiles have a maximum width)
/// * [CustomGrid] (which lets you supply your own [GridDelegate])
abstract
class
GridRenderObjectWidget
extends
MultiChildRenderObjectWidget
{
/// Initializes fields for subclasses.
...
...
@@ -1891,53 +1890,6 @@ class FixedColumnCountGrid extends GridRenderObjectWidget {
}
}
/// A widget that uses a grid layout with a maximum tile width.
///
/// For details about the grid layout algorithm, see [MaxTileWidthGridDelegate].
class
MaxTileWidthGrid
extends
GridRenderObjectWidget
{
/// Creates a grid with a maximum tile width.
///
/// The [columnCount] argument must not be negative.
MaxTileWidthGrid
({
Key
key
,
@required
this
.
maxTileWidth
,
this
.
columnSpacing
:
0.0
,
this
.
rowSpacing
:
0.0
,
this
.
tileAspectRatio
:
1.0
,
this
.
padding
:
EdgeInsets
.
zero
,
List
<
Widget
>
children:
const
<
Widget
>[],
})
:
super
(
key:
key
,
children:
children
)
{
assert
(
maxTileWidth
!=
null
&&
maxTileWidth
>=
0.0
);
assert
(
tileAspectRatio
!=
null
&&
tileAspectRatio
>
0.0
);
}
/// The maximum width of a tile in the grid.
final
double
maxTileWidth
;
/// 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
EdgeInsets
padding
;
@override
MaxTileWidthGridDelegate
createDelegate
()
{
return
new
MaxTileWidthGridDelegate
(
maxTileWidth:
maxTileWidth
,
tileAspectRatio:
tileAspectRatio
,
columnSpacing:
columnSpacing
,
rowSpacing:
rowSpacing
,
padding:
padding
);
}
}
/// A widget that controls the placement of a child in a grid.
///
/// The [placementData] this widget associates with the child is interpreted by
...
...
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