center_test.dart 526 Bytes
Newer Older
Ian Hickson's avatar
Ian Hickson committed
1
// Copyright 2014 The Flutter Authors. All rights reserved.
Hixie's avatar
Hixie committed
2 3 4
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

5
import 'package:flutter/widgets.dart';
6
import 'package:flutter_test/flutter_test.dart';
7 8

void main() {
9
  testWidgets('Can be placed in an infinite box', (WidgetTester tester) async {
10
    await tester.pumpWidget(
11
      Directionality(
12
        textDirection: TextDirection.ltr,
13
        child: ListView(children: const <Widget>[Center()]),
14 15
      ),
    );
16 17
  });
}