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
db63850e
Commit
db63850e
authored
Jul 24, 2015
by
Hixie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix test breakage (stocks test imports stocks app differently than a recent checkin expected).
parent
c6fe01ed
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
12 deletions
+14
-12
main.dart
packages/flutter/example/stocks/lib/main.dart
+2
-4
stock_data.dart
packages/flutter/example/stocks/lib/stock_data.dart
+7
-3
input.dart
packages/flutter/lib/editing/input.dart
+2
-2
radio.dart
packages/flutter/lib/widgets/radio.dart
+2
-2
toggleable.dart
packages/flutter/lib/widgets/toggleable.dart
+1
-1
No files found.
packages/flutter/example/stocks/lib/main.dart
View file @
db63850e
...
...
@@ -4,7 +4,6 @@
library
stocks
;
import
'dart:convert'
;
import
'dart:math'
as
math
;
import
'dart:sky'
as
sky
;
...
...
@@ -17,8 +16,6 @@ import 'package:sky/widgets/theme.dart';
import
'package:sky/widgets/widget.dart'
;
import
'package:sky/widgets/task_description.dart'
;
import
'package:sky/rendering/box.dart'
;
import
'package:sky/mojo/net/fetch.dart'
;
import
'package:sky/mojo/asset_bundle.dart'
;
import
'package:sky/editing/input.dart'
;
import
'package:sky/widgets/drawer.dart'
;
import
'package:sky/widgets/drawer_divider.dart'
;
...
...
@@ -49,8 +46,9 @@ import 'package:sky/widgets/switch.dart';
//TODO(jimsimon): Is this needed?
export
'package:sky/widgets/popup_menu.dart'
show
PopupMenuStatus
;
import
'stock_data.dart'
;
part
'stock_arrow.dart'
;
part
'stock_data.dart'
;
part
'stock_home.dart'
;
part
'stock_list.dart'
;
part
'stock_menu.dart'
;
...
...
packages/flutter/example/stocks/lib/stock_data.dart
View file @
db63850e
...
...
@@ -2,14 +2,18 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
part of
stocks
;
// Snapshot from http://www.nasdaq.com/screening/company-list.aspx
// Fetched 2/23/2014.
// "Symbol","Name","LastSale","MarketCap","IPOyear","Sector","industry","Summary Quote",
// Data in stock_data.json
final
Random
_rng
=
new
Random
();
import
'dart:convert'
;
import
'dart:math'
as
math
;
import
'package:sky/mojo/asset_bundle.dart'
;
import
'package:sky/mojo/net/fetch.dart'
;
final
math
.
Random
_rng
=
new
math
.
Random
();
class
Stock
{
String
symbol
;
...
...
packages/flutter/lib/editing/input.dart
View file @
db63850e
...
...
@@ -10,7 +10,7 @@ import 'package:sky/widgets/basic.dart';
import
'package:sky/widgets/focus.dart'
;
import
'package:sky/widgets/theme.dart'
;
typedef
void
ValueChanged
(
value
);
typedef
void
StringValueChanged
(
String
value
);
// TODO(eseidel): This isn't right, it's 16px on the bottom:
// http://www.google.com/design/spec/components/text-fields.html#text-fields-single-line-text-field
...
...
@@ -25,7 +25,7 @@ class Input extends StatefulComponent {
}):
super
(
key:
key
);
String
placeholder
;
ValueChanged
onChanged
;
String
ValueChanged
onChanged
;
String
_value
=
''
;
EditableString
_editableValue
;
...
...
packages/flutter/lib/widgets/radio.dart
View file @
db63850e
...
...
@@ -12,7 +12,7 @@ import 'package:sky/widgets/theme.dart';
const
sky
.
Color
_kLightOffColor
=
const
sky
.
Color
(
0x8A000000
);
const
sky
.
Color
_kDarkOffColor
=
const
sky
.
Color
(
0xB2FFFFFF
);
typedef
void
ValueChanged
(
value
);
typedef
RadioValueChanged
(
Object
value
);
class
Radio
extends
ButtonBase
{
...
...
@@ -25,7 +25,7 @@ class Radio extends ButtonBase {
Object
value
;
Object
groupValue
;
ValueChanged
onChanged
;
Radio
ValueChanged
onChanged
;
void
syncFields
(
Radio
source
)
{
value
=
source
.
value
;
...
...
packages/flutter/lib/widgets/toggleable.dart
View file @
db63850e
...
...
@@ -10,7 +10,7 @@ import 'package:sky/animation/curves.dart';
import
'package:sky/widgets/animated_component.dart'
;
import
'package:sky/widgets/basic.dart'
;
typedef
void
ValueChanged
(
value
);
typedef
void
ValueChanged
(
bool
value
);
const
Duration
_kCheckDuration
=
const
Duration
(
milliseconds:
200
);
...
...
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