From 79afc775941c9e3fddd7f8bfeaea77fd721cce64 Mon Sep 17 00:00:00 2001 From: Mikkel Nygaard Ravn Date: Tue, 18 Apr 2017 22:54:01 +0200 Subject: [PATCH] Plugin template uses new channel name (#9453) --- .../flutter_tools/templates/plugin/lib/projectName.dart.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/flutter_tools/templates/plugin/lib/projectName.dart.tmpl b/packages/flutter_tools/templates/plugin/lib/projectName.dart.tmpl index 0350ecde7e..b61b95ff0f 100644 --- a/packages/flutter_tools/templates/plugin/lib/projectName.dart.tmpl +++ b/packages/flutter_tools/templates/plugin/lib/projectName.dart.tmpl @@ -3,8 +3,8 @@ import 'dart:async'; import 'package:flutter/services.dart'; class {{pluginDartClass}} { - static const PlatformMethodChannel _channel = - const PlatformMethodChannel('{{projectName}}'); + static const MethodChannel _channel = + const MethodChannel('{{projectName}}'); static Future get platformVersion => _channel.invokeMethod('getPlatformVersion');