Deprecate RawKeyEvent, RawKeyboard, et al. (#136677)

## Description

This starts the deprecation of the `RawKeyEvent`/`RawKeyboard` event system that has been replaced by the `KeyEvent`/`HardwareKeyboard` event system.

Migration guide is available here: https://docs.flutter.dev/release/breaking-changes/key-event-migration

## Related Issues
 - https://github.com/flutter/flutter/issues/136419

## Related PRs
 - https://github.com/flutter/website/pull/9889
This commit is contained in:
Greg Spencer
2023-12-11 14:19:18 -08:00
committed by GitHub
parent 97190973d6
commit a33dec1a27
33 changed files with 784 additions and 195 deletions

View File

@@ -5,6 +5,10 @@
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
// TODO(gspencergoog): Delete this example when deprecated RawKeyEvent API is
// removed.
// ignore_for_file: deprecated_member_use
/// Flutter code sample for [KeyEventManager.keyMessageHandler].
void main() {