Commit 4670368a authored by 李增强's avatar 李增强

Initial commit

parent 39ac5e45
import 'dart:async'; import 'dart:async';
import 'dart:io';
import 'package:flutter/services.dart'; import 'package:flutter/services.dart';
...@@ -7,10 +8,16 @@ class RequestInstallPackages { ...@@ -7,10 +8,16 @@ class RequestInstallPackages {
const MethodChannel('request_install_packages'); const MethodChannel('request_install_packages');
static Future<bool> request() { static Future<bool> request() {
if (!Platform.isAndroid) {
return Future.value(true);
}
return _channel.invokeMethod('request'); return _channel.invokeMethod('request');
} }
static Future<bool> check() { static Future<bool> check() {
if (!Platform.isAndroid) {
return Future.value(true);
}
return _channel.invokeMethod('check'); return _channel.invokeMethod('check');
} }
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment