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
5aeff1ac
Commit
5aeff1ac
authored
Jul 23, 2015
by
Adam Barth
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #233 from abarth/fix_analyzer
Fix analyzer warnings
parents
3aa0437f
59798b98
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
21 deletions
+6
-21
feed.dart
packages/flutter/example/fitness/lib/feed.dart
+0
-1
meal.dart
packages/flutter/example/fitness/lib/meal.dart
+0
-1
main.dart
packages/flutter/example/mine_digger/lib/main.dart
+2
-17
dismissable.dart
packages/flutter/lib/widgets/dismissable.dart
+4
-2
No files found.
packages/flutter/example/fitness/lib/feed.dart
View file @
5aeff1ac
...
@@ -25,7 +25,6 @@ import 'package:sky/widgets/widget.dart';
...
@@ -25,7 +25,6 @@ import 'package:sky/widgets/widget.dart';
import
'fitness_types.dart'
;
import
'fitness_types.dart'
;
import
'fitness_item.dart'
;
import
'fitness_item.dart'
;
import
'measurement.dart'
;
import
'measurement.dart'
;
import
'meal.dart'
;
class
FitnessItemList
extends
Component
{
class
FitnessItemList
extends
Component
{
FitnessItemList
({
Key
key
,
this
.
items
,
this
.
onDismissed
})
:
super
(
key:
key
);
FitnessItemList
({
Key
key
,
this
.
items
,
this
.
onDismissed
})
:
super
(
key:
key
);
...
...
packages/flutter/example/fitness/lib/meal.dart
View file @
5aeff1ac
...
@@ -12,7 +12,6 @@ import 'package:sky/widgets/material.dart';
...
@@ -12,7 +12,6 @@ import 'package:sky/widgets/material.dart';
import
'package:sky/widgets/navigator.dart'
;
import
'package:sky/widgets/navigator.dart'
;
import
'package:sky/widgets/scaffold.dart'
;
import
'package:sky/widgets/scaffold.dart'
;
import
'package:sky/widgets/scrollable_viewport.dart'
;
import
'package:sky/widgets/scrollable_viewport.dart'
;
import
'package:sky/widgets/snack_bar.dart'
;
import
'package:sky/widgets/theme.dart'
;
import
'package:sky/widgets/theme.dart'
;
import
'package:sky/widgets/tool_bar.dart'
;
import
'package:sky/widgets/tool_bar.dart'
;
...
...
packages/flutter/example/mine_digger/lib/main.dart
View file @
5aeff1ac
...
@@ -38,11 +38,6 @@ const List<TextStyle> textStyles = const <TextStyle>[
...
@@ -38,11 +38,6 @@ const List<TextStyle> textStyles = const <TextStyle>[
enum
CellState
{
covered
,
exploded
,
cleared
,
flagged
,
shown
}
enum
CellState
{
covered
,
exploded
,
cleared
,
flagged
,
shown
}
class
MineDiggerApp
extends
App
{
class
MineDiggerApp
extends
App
{
void
initState
()
{
resetGame
();
}
static
const
int
rows
=
9
;
static
const
int
rows
=
9
;
static
const
int
cols
=
9
;
static
const
int
cols
=
9
;
static
const
int
totalMineCount
=
11
;
static
const
int
totalMineCount
=
11
;
...
@@ -56,18 +51,8 @@ class MineDiggerApp extends App {
...
@@ -56,18 +51,8 @@ class MineDiggerApp extends App {
// |uiState| keeps track of the visible player progess.
// |uiState| keeps track of the visible player progess.
List
<
List
<
CellState
>>
uiState
;
List
<
List
<
CellState
>>
uiState
;
Game
(
this
.
app
)
{
void
initState
()
{
randomSeed
=
22
;
resetGame
();
// Colors for each mine count:
// 0 - none, 1 - blue, 2-green, 3-red, 4-black, 5-dark red .. etc.
textStyles
.
add
(
new
TextStyle
(
color:
const
Color
(
0xFF555555
),
fontWeight:
bold
));
textStyles
.
add
(
new
TextStyle
(
color:
const
Color
(
0xFF0094FF
),
fontWeight:
bold
));
textStyles
.
add
(
new
TextStyle
(
color:
const
Color
(
0xFF13A023
),
fontWeight:
bold
));
textStyles
.
add
(
new
TextStyle
(
color:
const
Color
(
0xFFDA1414
),
fontWeight:
bold
));
textStyles
.
add
(
new
TextStyle
(
color:
const
Color
(
0xFF1E2347
),
fontWeight:
bold
));
textStyles
.
add
(
new
TextStyle
(
color:
const
Color
(
0xFF7F0037
),
fontWeight:
bold
));
textStyles
.
add
(
new
TextStyle
(
color:
const
Color
(
0xFFE93BE9
),
fontWeight:
bold
));
initialize
();
}
}
void
resetGame
()
{
void
resetGame
()
{
...
...
packages/flutter/lib/widgets/dismissable.dart
View file @
5aeff1ac
...
@@ -183,8 +183,10 @@ class Dismissable extends AnimatedComponent {
...
@@ -183,8 +183,10 @@ class Dismissable extends AnimatedComponent {
}
}
Widget
build
()
{
Widget
build
()
{
if
(
_resizePerformance
!=
null
)
if
(
_resizePerformance
!=
null
)
{
return
new
Container
(
height:
_resizePerformance
.
variable
.
value
);
AnimatedValue
<
double
>
height
=
_resizePerformance
.
variable
;
return
new
Container
(
height:
height
.
value
);
}
Matrix4
transform
=
new
Matrix4
.
identity
();
Matrix4
transform
=
new
Matrix4
.
identity
();
transform
.
translate
(
_position
.
value
.
x
,
_position
.
value
.
y
);
transform
.
translate
(
_position
.
value
.
x
,
_position
.
value
.
y
);
...
...
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