Commit 98091300 authored by James Robinson's avatar James Robinson

Updates for change in Mojom dart enum generation

parent e7bc8f57
......@@ -113,7 +113,7 @@ class MineDiggerApp extends App {
probe(ix, iy);
},
onLongPress: () {
userFeedback.performHapticFeedback(HapticFeedbackType_LONG_PRESS);
userFeedback.performHapticFeedback(HapticFeedbackType.LONG_PRESS);
flag(ix, iy);
},
child: new Listener(
......
......@@ -48,14 +48,14 @@ class DatePicker extends StatefulComponent {
DatePickerMode _mode = DatePickerMode.day;
void _handleModeChanged(DatePickerMode mode) {
userFeedback.performHapticFeedback(HapticFeedbackType_VIRTUAL_KEY);
userFeedback.performHapticFeedback(HapticFeedbackType.VIRTUAL_KEY);
setState(() {
_mode = mode;
});
}
void _handleYearChanged(DateTime dateTime) {
userFeedback.performHapticFeedback(HapticFeedbackType_VIRTUAL_KEY);
userFeedback.performHapticFeedback(HapticFeedbackType.VIRTUAL_KEY);
setState(() {
_mode = DatePickerMode.day;
});
......@@ -64,7 +64,7 @@ class DatePicker extends StatefulComponent {
}
void _handleDayChanged(DateTime dateTime) {
userFeedback.performHapticFeedback(HapticFeedbackType_VIRTUAL_KEY);
userFeedback.performHapticFeedback(HapticFeedbackType.VIRTUAL_KEY);
if (onChanged != null)
onChanged(dateTime);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment