mirror of
https://github.com/flutter/flutter
synced 2024-10-13 11:42:54 +00:00
6dc1e83f12
Ensure --no-track-widget-creation is piped through android/macOS. Adds integration testing for iOS/android/macOS
19 lines
644 B
Dart
19 lines
644 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 'dart:developer';
|
|
import 'package:flutter/widgets.dart';
|
|
|
|
void main() {
|
|
final Set<Widget> widgets = <Widget>{};
|
|
widgets.add(const Text('same'));
|
|
widgets.add(const Text('same'));
|
|
|
|
// If track-widget-creation is enabled, the set will have 2 members.
|
|
// Otherwise is will only have one.
|
|
registerExtension('ext.devicelab.test', (String method, Map<String, Object> params) async {
|
|
return ServiceExtensionResponse.result('{"result":${widgets.length}}');
|
|
});
|
|
}
|