Find a file
Carlo Bernaschina 16037e33ec Register tools as a reloadSources service (#11258)
In
df8bf384eb
a new functionality of the Dart VM Service Protocol has been introduced.

Clients connected to the Service Protocol are now able to expose
services that other clients (e.g. Observatory) can invoke through the
Service Protocol itself.

With these changes Flutter Tools register them self as a `reloadSources`
(a.k.a. HotReload) capable client.
Observatory is already listening for the clients which expose this
functionality and uses by default the service based version of
`reloadSources` when available, so requesting a HotReload from
Observatory will trigger the full Flutter HotReload.

Related https://github.com/dart-lang/sdk/issues/30023
Related https://github.com/flutter/flutter/pull/11229
Related https://github.com/flutter/flutter/pull/11256
2017-07-17 15:13:24 -07:00
.idea Move flutter_markdown to https://github.com/flutter/flutter_markdown (#9807) 2017-05-09 15:32:38 -07:00
bin Update --local-engine to account for changed host architecture of 32-bit Android debug builds. (#11263) 2017-07-17 14:56:27 -07:00
dev Fix ios doc url (#11262) 2017-07-17 23:42:13 +02:00
examples Gallery: remove unused code and a11y fix (#11209) 2017-07-14 14:44:11 -07:00
packages Register tools as a reloadSources service (#11258) 2017-07-17 15:13:24 -07:00
.analysis_options Add note to .analysis_options about .analysis_options in flutter/plugins (#10588) 2017-06-08 17:17:48 -07:00
.analysis_options_repo fix flutter analyze --dartdocs (#10182) 2017-05-19 08:46:34 -07:00
.gitattributes Add git config option to automatically convert CRLF to LF (#8122) 2017-02-14 10:21:33 -08:00
.gitignore Git ignore vscode .history files. (#8854) 2017-03-17 12:38:57 -07:00
.travis.yml Enable OS-X testing on Travis (#11141) 2017-07-10 15:30:37 -07:00
appveyor.yml add appveyor config (#8323) 2017-02-22 10:34:31 -08:00
AUTHORS Ignore HTML in flutter_markdown content without error (#8420) 2017-02-27 12:13:24 -08:00
CONTRIBUTING.md Update the docs for the flutter_tools tests (#11218) 2017-07-13 17:38:11 -07:00
ISSUE_TEMPLATE.md Update ISSUE_TEMPLATE.md 2016-11-02 10:00:58 -07:00
LICENSE Initial commit 2015-10-30 11:16:58 -07:00
PATENTS Add a file describing Google's commitments with regard to patents and this project (#8632) 2017-03-08 16:40:36 -08:00
README.md Fix missing animated gif in README (#11173) 2017-07-12 10:58:12 -07:00
VERSION Increment dev version numbers (#10897) 2017-06-21 15:33:22 -07:00

Flutter Flutter Join Gitter Chat Channel - Build Status - Travis Build Status - AppVeyor Coverage Status -

A new mobile app SDK to help developers and designers build modern mobile apps for iOS and Android. Flutter is an alpha, open-source project.

Documentation

Fast development

Flutter's hot reload helps you quickly and easily experiment, build UIs, add features, and fix bugs faster. Experience sub-second reload times, without losing state, on emulators, simulators, and hardware for iOS and Android.

Make a change in your code, and your app is changed instantly.

Expressive, beautiful UIs

Delight your users with Flutter's built-in beautiful Material Design and Cupertino (iOS-flavor) widgets, rich motion APIs, smooth natural scrolling, and platform awareness.

Brand-first shopping design Fitness app design Contact app design iOS chat app design

Browse the widget catalog.

Modern, reactive framework

Easily compose your UI with Flutter's modern functional-reactive framework and rich set of platform, layout, and foundation widgets. Solve your tough UI challenges with powerful and flexible APIs for 2D, animation, gestures, effects, and more.

class CounterState extends State<Counter> {
  int counter = 0;

  void increment() {
    // Tells the Flutter framework that state has changed,
    // so the framework can run build() and update the display.
    setState(() {
      counter++;
    });
  }

  Widget build(BuildContext context) {
    // This method is rerun every time setState is called.
    // The Flutter framework has been optimized to make rerunning
    // build methods fast, so that you can just rebuild anything that
    // needs updating rather than having to individually change
    // instances of widgets.
    return new Row(
      children: <Widget>[
        new RaisedButton(
          onPressed: increment,
          child: new Text('Increment'),
        ),
        new Text('Count: $counter'),
      ],
    );
  }
}

Browse the widget catalog and learn more about the functional-reactive framework.

Access native features and SDKs

Make your app come to life with platform APIs, 3rd party SDKs, and native code. Flutter lets you reuse your existing Java, Swift, and ObjC code, and access native features and SDKs on iOS and Android.

Accessing platform features is easy. Here is a snippet from our interop example:

Future<Null> 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;
  });
}

Learn how to use packages, or write platform channels, to access native code, APIs, and SDKs.

Unified app development

Flutter has the tools and libraries to help you easily bring your ideas to life on iOS and Android. If you don't have any mobile development experience, Flutter is an easy and fast way to build beautiful mobile apps. If you are an experienced iOS or Android developer, you can use Flutter for your views and leverage much of your existing Java/ObjC/Swift investment.

Build

  • Beautiful app UIs
    • Rich 2D GPU-accelerated APIs
    • Reactive framework
    • Animation/motion APIs
    • Material Design and iOS widgets
  • Fluid coding experience
    • Sub-second, stateful hot reload
    • IntelliJ: refactor, code completion, etc
    • Dart language and core libs
    • Package manager
  • Full-featured apps
    • Interop with mobile OS APIs & SDKs
    • Maven/Java
    • Cocoapods/ObjC/Swift

Optimize

  • Test
    • Unit testing
    • Integration testing
    • On-device testing
  • Debug
    • IDE debugger
    • Web-based debugger
    • async/await aware
    • Expression evaluator
  • Profile
    • Timeline
    • CPU and memory
    • In-app perf charts

Deploy

  • Compile
    • Native ARM code
    • Dead code elimination
  • Distribution
    • App Store
    • Play Store

Learn more about what makes Flutter special in the technical overview.

Join us in our Gitter chat room or join our public mailing list, flutter-dev@googlegroups.com.