1
0
mirror of https://github.com/flutter/samples.git synced 2026-03-27 06:41:37 +00:00

[federated_plugin_sample] Initial commit (#497)

This commit is contained in:
Ayush Bherwani
2020-07-21 06:25:55 +05:30
committed by GitHub
parent 86fd809f72
commit 32d04ba635
85 changed files with 2043 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
// Copyright 2020 The Flutter team. 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/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:federated_plugin_example/main.dart';
void main() {
testWidgets('Verify Platform version', (tester) async {
// Build our app and trigger a frame.
await tester.pumpWidget(MyApp());
// Verify that platform version is retrieved.
expect(
find.byWidgetPredicate(
(widget) => widget is Text &&
widget.data.startsWith('Running on:'),
),
findsOneWidget,
);
});
}