1
0
mirror of https://github.com/flutter/samples.git synced 2026-04-18 13:01:12 +00:00

touch ./animations (#148)

* Update project structure using flutter create and remove unused tests
* Small updates to main.dart
* Update maintenance.md
* Add missing newline
* Add rudimentary test
* Apply formatting
This commit is contained in:
Thea Flowers
2019-10-07 14:57:12 -07:00
committed by GitHub
parent e3338726c6
commit 74c1777b2a
11 changed files with 150 additions and 33 deletions

View File

@@ -1,9 +0,0 @@
// Copyright 2019 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_test/flutter_test.dart';
void main() {
testWidgets('This test always passes', (tester) async {});
}

View File

@@ -0,0 +1,20 @@
// This is a basic Flutter widget test.
//
// To perform an interaction with a widget in your test, use the WidgetTester
// utility that Flutter provides. For example, you can send tap and scroll
// gestures. You can also use WidgetTester to find child widgets in the widget
// tree, read text, and verify that the values of widget properties are correct.
import 'package:flutter_test/flutter_test.dart';
import 'package:animations/main.dart';
void main() {
testWidgets('Counter increments smoke test', (tester) async {
// Build our app and trigger a frame.
await tester.pumpWidget(AnimationSamples());
// Verify that a least one of our demos is showing up in the list
expect(find.text('AnimatedContainer'), findsOneWidget);
});
}