mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Merge pull request #1321 from jamesr/update_for_sky_services_roll
Updates for change in Mojom dart enum generation
This commit is contained in:
commit
9663b46ca2
@ -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);
|
||||
}
|
||||
|
||||
@ -28,7 +28,9 @@ struct TaskDescription {
|
||||
uint32 primaryColor;
|
||||
};
|
||||
|
||||
enum SystemUIVisibility {
|
||||
// TODO(jamesr): This should be called SystemUIVisibility (note case). This name
|
||||
// is a workaround for https://github.com/domokit/mojo/issues/445.
|
||||
enum SystemUiVisibility {
|
||||
STANDARD,
|
||||
FULLSCREEN,
|
||||
IMMERSIVE,
|
||||
@ -52,7 +54,7 @@ interface Activity {
|
||||
StartActivity(Intent intent);
|
||||
FinishCurrentActivity();
|
||||
SetTaskDescription(TaskDescription description);
|
||||
SetSystemUIVisibility(SystemUIVisibility visibility);
|
||||
SetSystemUIVisibility(SystemUiVisibility visibility);
|
||||
SetRequestedOrientation(ScreenOrientation orientation);
|
||||
|
||||
// These are stored off the Activity on Android, but probably belong in a
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user