mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
27 lines
504 B
Dart
27 lines
504 B
Dart
import 'package:flutter/widgets.dart';
|
|
import 'package:test/test.dart';
|
|
|
|
import 'widget_tester.dart';
|
|
|
|
void main() {
|
|
test('Align smoke test', () {
|
|
testWidgets((WidgetTester tester) {
|
|
tester.pumpWidget(
|
|
new Align(
|
|
child: new Container(),
|
|
horizontal: 0.75,
|
|
vertical: 0.75
|
|
)
|
|
);
|
|
|
|
tester.pumpWidget(
|
|
new Align(
|
|
child: new Container(),
|
|
horizontal: 0.5,
|
|
vertical: 0.5
|
|
)
|
|
);
|
|
});
|
|
});
|
|
}
|