mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Fix test breakage (stocks test imports stocks app differently than a recent checkin expected).
This commit is contained in:
parent
d9a68f99ce
commit
f2a60fa635
@ -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';
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
StringValueChanged onChanged;
|
||||
|
||||
String _value = '';
|
||||
EditableString _editableValue;
|
||||
|
||||
@ -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;
|
||||
RadioValueChanged onChanged;
|
||||
|
||||
void syncFields(Radio source) {
|
||||
value = source.value;
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user