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
3ac4c6c9
Commit
3ac4c6c9
authored
Jul 21, 2015
by
Adam Barth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix analyzer warnings
parent
310412fd
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
13 deletions
+12
-13
home.dart
packages/flutter/example/fitness/lib/home.dart
+0
-1
measurement.dart
packages/flutter/example/fitness/lib/measurement.dart
+0
-1
mutating-dom.dart
packages/flutter/example/raw/mutating-dom.dart
+9
-8
align_items.dart
packages/flutter/example/rendering/align_items.dart
+2
-2
card_collection.dart
packages/flutter/example/widgets/card_collection.dart
+1
-1
No files found.
packages/flutter/example/fitness/lib/home.dart
View file @
3ac4c6c9
...
...
@@ -14,7 +14,6 @@ import 'package:sky/widgets/drawer_item.dart';
import
'package:sky/widgets/floating_action_button.dart'
;
import
'package:sky/widgets/icon_button.dart'
;
import
'package:sky/widgets/icon.dart'
;
import
'package:sky/widgets/ink_well.dart'
;
import
'package:sky/widgets/material.dart'
;
import
'package:sky/widgets/navigator.dart'
;
import
'package:sky/widgets/scaffold.dart'
;
...
...
packages/flutter/example/fitness/lib/measurement.dart
View file @
3ac4c6c9
...
...
@@ -4,7 +4,6 @@
import
'package:sky/editing/input.dart'
;
import
'package:sky/widgets/basic.dart'
;
import
'package:sky/widgets/flat_button.dart'
;
import
'package:sky/widgets/icon_button.dart'
;
import
'package:sky/widgets/ink_well.dart'
;
import
'package:sky/widgets/material.dart'
;
...
...
packages/flutter/example/raw/mutating-dom.dart
View file @
3ac4c6c9
...
...
@@ -148,26 +148,27 @@ void doFrame(double timeStamp) {
break
;
}
}
else
{
assert
(
node
is
sky
.
Text
);
//
assert
(
node
is
sky
.
Text
);
//
final
sky
.
Text
text
=
node
;
if
(
pickThis
(
0.1
))
{
report
(
"appending a new text node (ASCII)"
);
node
.
appendData
(
generateCharacter
(
0x20
,
0x7F
));
text
.
appendData
(
generateCharacter
(
0x20
,
0x7F
));
break
;
}
else
if
(
pickThis
(
0.05
))
{
report
(
"appending a new text node (Latin1)"
);
node
.
appendData
(
generateCharacter
(
0x20
,
0xFF
));
text
.
appendData
(
generateCharacter
(
0x20
,
0xFF
));
break
;
}
else
if
(
pickThis
(
0.025
))
{
report
(
"appending a new text node (BMP)"
);
node
.
appendData
(
generateCharacter
(
0x20
,
0xFFFF
));
text
.
appendData
(
generateCharacter
(
0x20
,
0xFFFF
));
break
;
}
else
if
(
pickThis
(
0.0125
))
{
report
(
"appending a new text node (Unicode)"
);
node
.
appendData
(
generateCharacter
(
0x20
,
0x10FFFF
));
text
.
appendData
(
generateCharacter
(
0x20
,
0x10FFFF
));
break
;
}
else
if
(
node
.
length
>
1
&&
pickThis
(
0.1
))
{
}
else
if
(
text
.
length
>
1
&&
pickThis
(
0.1
))
{
report
(
"deleting character from Text node"
);
node
.
deleteData
(
random
.
nextInt
(
node
.
length
),
1
);
text
.
deleteData
(
random
.
nextInt
(
text
.
length
),
1
);
break
;
}
}
...
...
@@ -178,7 +179,7 @@ void doFrame(double timeStamp) {
int
count
=
1
;
while
(
node
!=
null
)
{
if
(
node
is
sky
.
Element
&&
node
.
firstChild
!=
null
)
{
node
=
node
.
firstChild
;
node
=
(
node
as
sky
.
Element
)
.
firstChild
;
count
+=
1
;
}
else
{
while
(
node
!=
null
&&
node
.
nextSibling
==
null
)
...
...
packages/flutter/example/rendering/align_items.dart
View file @
3ac4c6c9
...
...
@@ -20,7 +20,7 @@ void main() {
TextStyle
style
=
const
TextStyle
(
color:
const
Color
(
0xFF000000
));
RenderParagraph
paragraph
=
new
RenderParagraph
(
new
InlineStyle
(
style
,
[
new
InlineText
(
"
${alignItems}
"
)]));
table
.
add
(
new
RenderPadding
(
child:
paragraph
,
padding:
new
EdgeDims
.
only
(
top:
20.0
)));
var
row
=
new
RenderFlex
(
alignItems:
alignItems
,
b
aseline:
TextBaseline
.
alphabetic
);
var
row
=
new
RenderFlex
(
alignItems:
alignItems
,
textB
aseline:
TextBaseline
.
alphabetic
);
style
=
new
TextStyle
(
fontSize:
15.0
,
color:
const
Color
(
0xFF000000
));
row
.
add
(
new
RenderDecoratedBox
(
...
...
@@ -32,7 +32,7 @@ void main() {
decoration:
new
BoxDecoration
(
backgroundColor:
const
Color
(
0x7FCCFFCC
)),
child:
new
RenderParagraph
(
new
InlineStyle
(
style
,
[
new
InlineText
(
'foo foo foo'
)]))
));
var
subrow
=
new
RenderFlex
(
alignItems:
alignItems
,
b
aseline:
TextBaseline
.
alphabetic
);
var
subrow
=
new
RenderFlex
(
alignItems:
alignItems
,
textB
aseline:
TextBaseline
.
alphabetic
);
style
=
new
TextStyle
(
fontSize:
25.0
,
color:
const
Color
(
0xFF000000
));
subrow
.
add
(
new
RenderDecoratedBox
(
decoration:
new
BoxDecoration
(
backgroundColor:
const
Color
(
0x7FCCCCFF
)),
...
...
packages/flutter/example/widgets/card_collection.dart
View file @
3ac4c6c9
...
...
@@ -44,7 +44,7 @@ class ShrinkingCard extends AnimatedComponent {
Function
onUpdated
;
Function
onCompleted
;
double
get
currentHeight
=>
card
.
performance
.
variable
.
value
;
double
get
currentHeight
=>
(
card
.
performance
.
variable
as
AnimatedType
)
.
value
;
void
initState
()
{
assert
(
card
.
performance
!=
null
);
...
...
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