基础组件库
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

zhiying_base_widget_test.dart 453 B

4 年前
4 年前
1234567891011121314151617181920
  1. import 'package:flutter/services.dart';
  2. import 'package:flutter_test/flutter_test.dart';
  3. void main() {
  4. const MethodChannel channel = MethodChannel('zhiying_base_widget');
  5. TestWidgetsFlutterBinding.ensureInitialized();
  6. setUp(() {
  7. channel.setMockMethodCallHandler((MethodCall methodCall) async {
  8. return '42';
  9. });
  10. });
  11. tearDown(() {
  12. channel.setMockMethodCallHandler(null);
  13. });
  14. test('getPlatformVersion', () async {});
  15. }