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
2898768d
Commit
2898768d
authored
Jun 27, 2016
by
Adam Barth
Committed by
GitHub
Jun 27, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some missing docs (#4772)
These docs complete the dartdocs for their respective libraries.
parent
2af668f8
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
0 deletions
+11
-0
solver.dart
packages/flutter/lib/src/cassowary/solver.dart
+7
-0
sprite_box.dart
packages/flutter_sprites/lib/src/sprite_box.dart
+1
-0
textured_line.dart
packages/flutter_sprites/lib/src/textured_line.dart
+1
-0
controller.dart
packages/flutter_test/lib/src/controller.dart
+2
-0
No files found.
packages/flutter/lib/src/cassowary/solver.dart
View file @
2898768d
...
@@ -145,6 +145,10 @@ class _Row {
...
@@ -145,6 +145,10 @@ class _Row {
}
}
}
}
/// Solves cassowary constraints.
///
/// Typically clients will create a solver, [addConstraints], and then call
/// [flushUpdates] to actually solve the constraints.
class
Solver
{
class
Solver
{
final
Map
<
Constraint
,
_Tag
>
_constraints
=
new
Map
<
Constraint
,
_Tag
>();
final
Map
<
Constraint
,
_Tag
>
_constraints
=
new
Map
<
Constraint
,
_Tag
>();
final
Map
<
_Symbol
,
_Row
>
_rows
=
new
Map
<
_Symbol
,
_Row
>();
final
Map
<
_Symbol
,
_Row
>
_rows
=
new
Map
<
_Symbol
,
_Row
>();
...
@@ -153,6 +157,9 @@ class Solver {
...
@@ -153,6 +157,9 @@ class Solver {
final
List
<
_Symbol
>
_infeasibleRows
=
new
List
<
_Symbol
>();
final
List
<
_Symbol
>
_infeasibleRows
=
new
List
<
_Symbol
>();
final
_Row
_objective
=
new
_Row
(
0.0
);
final
_Row
_objective
=
new
_Row
(
0.0
);
_Row
_artificial
=
new
_Row
(
0.0
);
_Row
_artificial
=
new
_Row
(
0.0
);
/// A monotonically increasing value that indicates how many times the solver
/// has iterated.
int
tick
=
1
;
int
tick
=
1
;
/// Attempts to add the constraints in the list to the solver. If it cannot
/// Attempts to add the constraints in the list to the solver. If it cannot
...
...
packages/flutter_sprites/lib/src/sprite_box.dart
View file @
2898768d
...
@@ -85,6 +85,7 @@ class SpriteBox extends RenderBox {
...
@@ -85,6 +85,7 @@ class SpriteBox extends RenderBox {
Duration
_lastTimeStamp
;
Duration
_lastTimeStamp
;
double
_frameRate
=
0.0
;
double
_frameRate
=
0.0
;
/// An instantaneous estimate of the number of frames per second this sprite box is producing.
double
get
frameRate
=>
_frameRate
;
double
get
frameRate
=>
_frameRate
;
// Transformation mode
// Transformation mode
...
...
packages/flutter_sprites/lib/src/textured_line.dart
View file @
2898768d
...
@@ -25,6 +25,7 @@ class TexturedLine extends Node {
...
@@ -25,6 +25,7 @@ class TexturedLine extends Node {
/// Draws a polyline to a [Canvas] from a list of points using the provided [Texture].
/// Draws a polyline to a [Canvas] from a list of points using the provided [Texture].
class
TexturedLinePainter
{
class
TexturedLinePainter
{
/// Creates a painter that draws a polyline with a texture.
TexturedLinePainter
(
this
.
_points
,
this
.
colors
,
this
.
widths
,
[
Texture
texture
,
this
.
textureStops
])
{
TexturedLinePainter
(
this
.
_points
,
this
.
colors
,
this
.
widths
,
[
Texture
texture
,
this
.
textureStops
])
{
this
.
texture
=
texture
;
this
.
texture
=
texture
;
}
}
...
...
packages/flutter_test/lib/src/controller.dart
View file @
2898768d
...
@@ -17,8 +17,10 @@ import 'test_pointer.dart';
...
@@ -17,8 +17,10 @@ import 'test_pointer.dart';
///
///
/// For a variant of this class suited specifically for unit tests, see [WidgetTester].
/// For a variant of this class suited specifically for unit tests, see [WidgetTester].
class
WidgetController
{
class
WidgetController
{
/// Creates a widget controller that uses the given binding.
WidgetController
(
this
.
binding
);
WidgetController
(
this
.
binding
);
/// A reference to the current instance of the binding.
final
WidgetsBinding
binding
;
final
WidgetsBinding
binding
;
// FINDER API
// FINDER API
...
...
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