Merge pull request #1317 from jamesr/roll_pubspec_and_mojo_sdk
Update to Mojo 4e4d51ce28a8edcb32b9c7f555e38e2ae84a825e, update deps
This commit is contained in:
commit
7c854e121b
@ -189,7 +189,7 @@ class MeasurementFragment extends StatefulComponent {
|
||||
new Input(
|
||||
key: weightKey,
|
||||
placeholder: 'Enter weight',
|
||||
keyboardType: KeyboardType_NUMBER,
|
||||
keyboardType: KeyboardType.NUMBER,
|
||||
onChanged: _handleWeightChanged
|
||||
),
|
||||
], alignItems: FlexAlignItems.stretch)
|
||||
|
@ -70,7 +70,7 @@ class SettingsFragment extends StatefulComponent {
|
||||
content: new Input(
|
||||
key: weightGoalKey,
|
||||
placeholder: 'Goal weight in lbs',
|
||||
keyboardType: KeyboardType_NUMBER,
|
||||
keyboardType: KeyboardType.NUMBER,
|
||||
onChanged: _handleGoalWeightChanged
|
||||
),
|
||||
onDismiss: () {
|
||||
|
@ -31,7 +31,7 @@ class Keyboard {
|
||||
|
||||
KeyboardHandle _currentHandle;
|
||||
|
||||
KeyboardHandle show(KeyboardClientStub stub, int keyboardType) {
|
||||
KeyboardHandle show(KeyboardClientStub stub, KeyboardType keyboardType) {
|
||||
assert(stub != null);
|
||||
if (_currentHandle != null) {
|
||||
if (_currentHandle.stub == stub)
|
||||
@ -46,7 +46,7 @@ class Keyboard {
|
||||
|
||||
class KeyboardHandle {
|
||||
|
||||
KeyboardHandle._show(Keyboard keyboard, this.stub, int keyboardType) : _keyboard = keyboard {
|
||||
KeyboardHandle._show(Keyboard keyboard, this.stub, KeyboardType keyboardType) : _keyboard = keyboard {
|
||||
_keyboard.service.show(stub, keyboardType);
|
||||
_attached = true;
|
||||
}
|
||||
|
@ -10,7 +10,7 @@ import 'package:sky/src/widgets/focus.dart';
|
||||
import 'package:sky/src/widgets/framework.dart';
|
||||
import 'package:sky/src/widgets/theme.dart';
|
||||
|
||||
export 'package:sky/services.dart' show KeyboardType_TEXT, KeyboardType_NUMBER, KeyboardType_PHONE, KeyboardType_DATETIME;
|
||||
export 'package:sky/services.dart' show KeyboardType;
|
||||
|
||||
typedef void StringValueChanged(String value);
|
||||
|
||||
@ -25,10 +25,10 @@ class Input extends StatefulComponent {
|
||||
String initialValue: '',
|
||||
this.placeholder,
|
||||
this.onChanged,
|
||||
this.keyboardType : KeyboardType_TEXT
|
||||
this.keyboardType : KeyboardType.TEXT
|
||||
}): _value = initialValue, super(key: key);
|
||||
|
||||
int keyboardType;
|
||||
KeyboardType keyboardType;
|
||||
String placeholder;
|
||||
StringValueChanged onChanged;
|
||||
|
||||
|
@ -6,8 +6,8 @@ homepage: http://flutter.io
|
||||
dependencies:
|
||||
cassowary: ^0.1.7
|
||||
material_design_icons: ^0.0.3
|
||||
mojo_services: 0.0.23
|
||||
mojo: 0.0.23
|
||||
mojo_services: '>=0.1.0 <0.2.0'
|
||||
mojo: '>=0.1.0 <0.2.0'
|
||||
newton: ^0.1.3
|
||||
sky_engine: ^0.0.25
|
||||
sky_services: ^0.0.25
|
||||
|
@ -11,7 +11,7 @@ import '../services/mock_services.dart';
|
||||
class MockKeyboard implements KeyboardService {
|
||||
KeyboardClient client;
|
||||
|
||||
void show(KeyboardClientStub client, int type) {
|
||||
void show(KeyboardClientStub client, KeyboardType type) {
|
||||
this.client = client.impl;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user