Skip to content

Commit 42f868e

Browse files
committed
fix(android): registerWith cannot have methodchannel
1 parent 0b0ce97 commit 42f868e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import 'package:app_widget_android/app_widget_android.dart';
21
import 'package:app_widget_platform_interface/app_widget_platform_interface.dart';
32

43
class AppWidgetAndroid extends AppWidgetPlatform {
54
// this is use by flutter pluginRegistrant
65
// this will register with no callback
6+
// no methodChannel are allowed since this are call before the app
77
static void registerWith() {
8-
AppWidgetPlatform.instance = AppWidgetAndroidPlugin();
8+
AppWidgetPlatform.instance = AppWidgetAndroid();
99
}
1010
}

0 commit comments

Comments
 (0)