commit | e458fd08d99df663bcb32898588bcd3a34cc199a | [log] [tgz] |
---|---|---|
author | Jacek FedoryĆski <jfedor@jfedor.org> | Thu Oct 24 20:06:03 2019 +0200 |
committer | Jonah Williams <jonahwilliams@google.com> | Thu Oct 24 11:06:03 2019 -0700 |
tree | 833ada6422e245d0402da9b2247469e4b6300909 | |
parent | bcab851b8f90b4a836918707e89ba5bf61d30977 [diff] |
Add repeatCount to RawKeyEventDataAndroid (#42861) * Add repeatCount to RawKeyEventDataAndroid Adds a new field to RawKeyEventDataAndroid and sets it to the value passed from the engine. It is the value returned by KeyEvent.getRepeatCount(). This allows us to differentiate between events generated by a new keypress and repeated events when a key is held down. * Add test for RawKeyEventDataAndroid.repeatCount
Flutter is Google's mobile app SDK for crafting high-quality native interfaces on iOS and Android in record time. Flutter works with existing code, is used by developers and organizations around the world, and is free and open source.
For announcements about new releases and breaking changes, follow the flutter-announce@googlegroups.com mailing list.
We think Flutter will help you create beautiful, fast apps, with a productive, extensible and open development model.
We want to enable designers to deliver their full creative vision without being forced to water it down due to limitations of the underlying framework. Flutter's layered architecture gives you control over every pixel on the screen, and its powerful compositing capabilities let you overlay and animate graphics, video, text and controls without limitation. Flutter includes a full set of widgets that deliver pixel-perfect experiences on both iOS and Android.
Flutter is fast. It's powered by the same hardware-accelerated Skia 2D graphics library that underpins Chrome and Android. We architected Flutter to support glitch-free, jank-free graphics at the native speed of your device. Flutter code is powered by the world-class Dart platform, which enables compilation to native 32-bit and 64-bit ARM code for iOS and Android.
Flutter offers stateful hot reload, allowing you to make changes to your code and see the results instantly without restarting your app or losing its state.
Flutter works with any development tool, but includes editor plug-ins for both Visual Studio Code and IntelliJ / Android Studio. Flutter provides thousands of packages to speed your development, regardless of your target platform. And accessing platform features is easy. Here is a snippet from our interop example:
Future<void> getBatteryLevel() async { var batteryLevel = 'unknown'; try { int result = await methodChannel.invokeMethod('getBatteryLevel'); batteryLevel = 'Battery level: $result%'; } on PlatformException { batteryLevel = 'Failed to get battery level.'; } setState(() { _batteryLevel = batteryLevel; }); }
Flutter is a fully open source project, and we welcome contributions. Information on how to get started can be found at our contributor guide.