mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
25 lines
510 B
Dart
25 lines
510 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(),
|
|
alignment: const FractionalOffset(0.75, 0.75)
|
|
)
|
|
);
|
|
|
|
tester.pumpWidget(
|
|
new Align(
|
|
child: new Container(),
|
|
alignment: const FractionalOffset(0.5, 0.5)
|
|
)
|
|
);
|
|
});
|
|
});
|
|
}
|