[infra_ui] Fix warning issues raised by analyzer

This commit is contained in:
Jaylen Bian 2021-07-21 11:23:41 +08:00
parent b89958a551
commit 777b3a68ed
7 changed files with 21 additions and 34 deletions

View File

@ -7,7 +7,7 @@ packages:
name: async name: async
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.7.0" version: "2.6.1"
boolean_selector: boolean_selector:
dependency: transitive dependency: transitive
description: description:
@ -28,7 +28,7 @@ packages:
name: charcode name: charcode
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.3.1" version: "1.2.0"
clock: clock:
dependency: transitive dependency: transitive
description: description:
@ -101,7 +101,7 @@ packages:
name: meta name: meta
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.4.0" version: "1.3.0"
path: path:
dependency: transitive dependency: transitive
description: description:
@ -155,7 +155,7 @@ packages:
name: test_api name: test_api
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.4.1" version: "0.3.0"
textstyle_extensions: textstyle_extensions:
dependency: "direct main" dependency: "direct main"
description: description:

View File

@ -1,5 +1 @@
import 'package:flutter_test/flutter_test.dart';
import 'package:flowy_infra_ui_platform_interface/flowy_infra_ui_platform_interface.dart';
void main() {} void main() {}

View File

@ -1,5 +1 @@
import 'package:flutter_test/flutter_test.dart';
import 'package:flowy_infra_ui_web/flowy_infra_ui_web.dart';
void main() {} void main() {}

View File

@ -1,6 +1,5 @@
import 'package:flutter/services.dart'; import 'package:flutter/services.dart';
import 'package:flutter_test/flutter_test.dart'; import 'package:flutter_test/flutter_test.dart';
import 'package:flowy_infra_ui/flowy_infra_ui.dart';
void main() { void main() {
const MethodChannel channel = MethodChannel('flowy_infra_ui'); const MethodChannel channel = MethodChannel('flowy_infra_ui');
@ -16,8 +15,4 @@ void main() {
tearDown(() { tearDown(() {
channel.setMockMethodCallHandler(null); channel.setMockMethodCallHandler(null);
}); });
test('getPlatformVersion', () async {
expect(await FlowyInfraUi.platformVersion, '42');
});
} }

View File

@ -14,7 +14,7 @@ packages:
name: async name: async
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.7.0" version: "2.6.1"
boolean_selector: boolean_selector:
dependency: transitive dependency: transitive
description: description:
@ -35,7 +35,7 @@ packages:
name: charcode name: charcode
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.3.1" version: "1.2.0"
clock: clock:
dependency: transitive dependency: transitive
description: description:
@ -91,7 +91,7 @@ packages:
name: file name: file
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "6.1.2" version: "6.1.1"
fixnum: fixnum:
dependency: transitive dependency: transitive
description: description:
@ -193,7 +193,7 @@ packages:
name: meta name: meta
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.4.0" version: "1.3.0"
path: path:
dependency: transitive dependency: transitive
description: description:
@ -275,7 +275,7 @@ packages:
name: test_api name: test_api
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.4.1" version: "0.3.0"
textstyle_extensions: textstyle_extensions:
dependency: transitive dependency: transitive
description: description:
@ -317,7 +317,7 @@ packages:
name: vm_service name: vm_service
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "7.1.0" version: "6.2.0"
webdriver: webdriver:
dependency: transitive dependency: transitive
description: description:

View File

@ -28,7 +28,7 @@ packages:
name: async name: async
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.7.0" version: "2.6.1"
boolean_selector: boolean_selector:
dependency: transitive dependency: transitive
description: description:
@ -105,7 +105,7 @@ packages:
name: charcode name: charcode
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.3.1" version: "1.2.0"
checked_yaml: checked_yaml:
dependency: transitive dependency: transitive
description: description:
@ -318,7 +318,7 @@ packages:
name: meta name: meta
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.4.0" version: "1.3.0"
mime: mime:
dependency: transitive dependency: transitive
description: description:
@ -442,7 +442,7 @@ packages:
name: test_api name: test_api
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.4.1" version: "0.3.0"
textstyle_extensions: textstyle_extensions:
dependency: transitive dependency: transitive
description: description:

View File

@ -14,7 +14,7 @@ packages:
name: analyzer name: analyzer
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.7.2" version: "1.7.1"
animations: animations:
dependency: transitive dependency: transitive
description: description:
@ -35,7 +35,7 @@ packages:
name: async name: async
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.7.0" version: "2.6.1"
bloc: bloc:
dependency: transitive dependency: transitive
description: description:
@ -119,7 +119,7 @@ packages:
name: charcode name: charcode
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.3.1" version: "1.2.0"
checked_yaml: checked_yaml:
dependency: transitive dependency: transitive
description: description:
@ -344,7 +344,7 @@ packages:
name: freezed_annotation name: freezed_annotation
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.14.3" version: "0.14.2"
frontend_server_client: frontend_server_client:
dependency: transitive dependency: transitive
description: description:
@ -414,7 +414,7 @@ packages:
name: json_annotation name: json_annotation
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "4.1.0" version: "4.0.1"
lint: lint:
dependency: transitive dependency: transitive
description: description:
@ -456,7 +456,7 @@ packages:
name: meta name: meta
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.7.0" version: "1.3.0"
mime: mime:
dependency: transitive dependency: transitive
description: description:
@ -701,7 +701,7 @@ packages:
name: test_api name: test_api
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.4.1" version: "0.3.0"
textstyle_extensions: textstyle_extensions:
dependency: transitive dependency: transitive
description: description: