mirror of
https://github.com/flutter/samples.git
synced 2026-07-07 17:42:56 +00:00
Flutter 3.29 beta (#2571)
This commit is contained in:
@@ -6,9 +6,7 @@ import 'package:animations/src/misc/expand_card.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
|
||||
Widget createExpandCardScreen() => const MaterialApp(
|
||||
home: ExpandCardDemo(),
|
||||
);
|
||||
Widget createExpandCardScreen() => const MaterialApp(home: ExpandCardDemo());
|
||||
|
||||
void main() {
|
||||
group('ExpandCard Tests', () {
|
||||
@@ -24,10 +22,7 @@ void main() {
|
||||
|
||||
// The size of ExpandCard must change once tapped.
|
||||
// The initialSize should be less than current ExpandCard size.
|
||||
expect(
|
||||
initialSize,
|
||||
lessThan(tester.getSize(find.byType(ExpandCard))),
|
||||
);
|
||||
expect(initialSize, lessThan(tester.getSize(find.byType(ExpandCard))));
|
||||
});
|
||||
|
||||
testWidgets('ExpandCard changes image on tap', (tester) async {
|
||||
|
||||
Reference in New Issue
Block a user