mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
22 lines
779 B
Dart
22 lines
779 B
Dart
// Copyright 2014 The Flutter Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
import 'package:flutter/foundation.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter_driver/driver_extension.dart';
|
|
import 'package:flutter_test/flutter_test.dart';
|
|
|
|
import 'package:macrobenchmarks/common.dart';
|
|
import 'package:macrobenchmarks/main.dart';
|
|
|
|
Future<void> main() async {
|
|
enableFlutterDriverExtension(handler: (String? message) async {
|
|
if (message == 'getTargetPlatform') {
|
|
return defaultTargetPlatform.toString();
|
|
}
|
|
throw UnsupportedError('Message $message unsupported');
|
|
});
|
|
runApp(const MacrobenchmarksApp(initialRoute: kLargeImageChangerRouteName));
|
|
}
|