flutter/examples/platform_channel
Jonah Williams 88cc977384
Remove package:http from Flutter (#15416)
* use HttpOverrides and dart:io HttpClient in flutter

* add missing package:http dependency

* update flutter packages and remove comment about createHttpClient from flutter_test

* move byte loading logic to common class, move string parsing logic to base class

* addAll doesn't work for a Uint8List

* use bytes.setRange

* undo addition to hello_world

* add newline to end of binding.dart

* and a newline for hello world

* refactor to function and add tests

* address comments on unknown length case

* alignment

* sort alaphabetically

* rename convertResponse to consolidateClientHttpClientResponseBytes.  Add header

* fix alignment in test
2018-03-22 08:21:01 -07:00
..
android Remove generated files from repo (#14697) 2018-02-16 12:33:21 +01:00
ios Remove generated files from repo (#14697) 2018-02-16 12:33:21 +01:00
lib Fix strong mode error in platform_channel/main.dart (#15624) 2018-03-16 16:21:33 -07:00
test_driver enable always_put_control_body_on_new_line lint (#9950) 2017-05-10 09:41:55 +02:00
pubspec.yaml Remove package:http from Flutter (#15416) 2018-03-22 08:21:01 -07:00
README.md Rename platform_services to platform_channel (#9018) 2017-03-27 11:17:31 +02:00

Example of calling platform services from Flutter

This project demonstrates how to connect a Flutter app to platform specific services.

You can read more about accessing platform and third-party services in Flutter.

iOS

You can use the commands flutter build and flutter run from the app's root directory to build/run the app or you can open ios/Runner.xcworkspace in Xcode and build/run the project as usual.

Android

You can use the commands flutter build and flutter run from the app's root directory to build/run the app or to build with Android Studio, open the android folder in Android Studio and build the project as usual.