From 90d4153189f977155674da909be1a92e2c44bd6d Mon Sep 17 00:00:00 2001 From: feroult Date: Tue, 14 Nov 2017 16:57:39 -0200 Subject: [PATCH] remove custom binder to avoid supermixin --- lib/util.dart | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/util.dart b/lib/util.dart index d9939c379..e5395d1d9 100644 --- a/lib/util.dart +++ b/lib/util.dart @@ -2,7 +2,6 @@ import 'dart:async'; import 'dart:ui'; import 'dart:ui' as ui show TextStyle; -import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; @@ -25,7 +24,7 @@ class Util { } void enableEvents() { - new _CustomBinder(); + window.onPlatformMessage = BinaryMessages.handlePlatformMessage; } void fullScreen() { @@ -44,5 +43,3 @@ class Util { return paragraph.build()..layout(new ParagraphConstraints(width: maxWidth)); } } - -class _CustomBinder extends BindingBase with ServicesBinding {}