Update README to include non-mobile targets (#42873)

* Update README to include non-mobile targets

* Tweak headings
This commit is contained in:
Tim Sneath 2019-10-29 15:57:14 -07:00 committed by GitHub
parent 3352b91f2c
commit 05c3f7b6a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,9 +3,10 @@
[![Build Status - Cirrus][]][Build status] [![Build Status - Cirrus][]][Build status]
[![Gitter Channel][]][Gitter badge] [![Gitter Channel][]][Gitter badge]
Flutter is Google's mobile app SDK for crafting high-quality native interfaces Flutter is Google's SDK for crafting beautiful, fast user experiences for
on iOS and Android in record time. Flutter works with existing code, is used by mobile, web and desktop from a single codebase. Flutter works with existing
developers and organizations around the world, and is free and open source. code, is used by developers and organizations around the world, and is free
and open source.
## Documentation ## Documentation
@ -23,7 +24,7 @@ mailing list.
We think Flutter will help you create beautiful, fast apps, with a productive, We think Flutter will help you create beautiful, fast apps, with a productive,
extensible and open development model. extensible and open development model.
### Beautiful apps ### Beautiful user experiences
We want to enable designers to deliver their full creative vision without being 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. forced to water it down due to limitations of the underlying framework.
@ -35,13 +36,16 @@ iOS and Android.
![Reflectly hero image][Reflectly hero image] ![Reflectly hero image][Reflectly hero image]
### Fast apps ### Fast results
Flutter is fast. It's powered by the same hardware-accelerated [Skia] 2D Flutter is fast. It's powered by the same hardware-accelerated [Skia] 2D
graphics library that underpins Chrome and Android. We architected Flutter to graphics library that underpins Chrome and Android. We architected Flutter to
support glitch-free, jank-free graphics at the native speed of your device. 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 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. compilation to 32-bit and 64-bit ARM machine code for iOS and Android, as well
as JavaScript for the web and Intel x64 for desktop devices.
![Dart platforms][Dart platforms]
### Productive development ### Productive development
@ -52,26 +56,11 @@ and see the results instantly without restarting your app or losing its state.
### Extensible and open model ### Extensible and open model
Flutter works with any development tool, but includes editor plug-ins for both Flutter works with any development tool (or none at all), but includes editor
[Visual Studio Code] and [IntelliJ / Android Studio]. Flutter provides plug-ins for both [Visual Studio Code] and [IntelliJ / Android Studio]. Flutter
[thousands of packages][Flutter packages] to speed your development, regardless provides [thousands of packages][Flutter packages] to speed your development,
of your target platform. And accessing platform features is easy. Here is a regardless of your target platform. And accessing other native code is easy,
snippet from our [interop example]: with support for both [FFI] and [platform-specific APIs][platform channels].
```dart
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. Flutter is a fully open source project, and we welcome contributions.
Information on how to get started can be found at our Information on how to get started can be found at our
@ -86,6 +75,7 @@ Information on how to get started can be found at our
[layered architecture]: https://flutter.dev/docs/resources/inside-flutter [layered architecture]: https://flutter.dev/docs/resources/inside-flutter
[widget catalog]: https://flutter.dev/widgets/ [widget catalog]: https://flutter.dev/widgets/
[Reflectly hero image]: https://github.com/flutter/website/blob/master/src/images/homepage/reflectly-hero-600px.png [Reflectly hero image]: https://github.com/flutter/website/blob/master/src/images/homepage/reflectly-hero-600px.png
[Dart platforms]: https://dart.dev/assets/platforms-7f4d540acf9fe801b456ad74f9f855230a385014d05d9f5997c878b889a67a0f.svg
[Skia]: https://skia.org/ [Skia]: https://skia.org/
[Dart platform]: https://dart.dev/ [Dart platform]: https://dart.dev/
[Hot reload animation]: https://raw.githubusercontent.com/flutter/website/master/src/_assets/image/tools/android-studio/hot-reload.gif [Hot reload animation]: https://raw.githubusercontent.com/flutter/website/master/src/_assets/image/tools/android-studio/hot-reload.gif
@ -93,4 +83,6 @@ Information on how to get started can be found at our
[Visual Studio Code]: https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter [Visual Studio Code]: https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[IntelliJ / Android Studio]: https://plugins.jetbrains.com/plugin/9212-flutter [IntelliJ / Android Studio]: https://plugins.jetbrains.com/plugin/9212-flutter
[Flutter packages]: https://pub.dev/flutter [Flutter packages]: https://pub.dev/flutter
[FFI]: https://flutter.dev/docs/development/platform-integration/c-interop
[platform channels]: https://flutter.dev/docs/development/platform-integration/platform-channels
[interop example]: https://github.com/flutter/flutter/tree/master/examples/platform_channel [interop example]: https://github.com/flutter/flutter/tree/master/examples/platform_channel