基础组件库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

zhiying_base_widget_test.dart 453 B

преди 4 години
преди 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. }