blob: f00ceb52b5d250b11a13a08bab4d09f3bb018ff7 [file] [log] [blame]
// Copyright 2014 The Flutter Authors. 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/material.dart';
import 'package:flutter_test/flutter_test.dart';
void main() {
testWidgets('Rendering Error', (WidgetTester tester) async {
// This should fail with user created widget = Row.
await tester.pumpWidget(
theme: ThemeData(useMaterial3: false),
home: Scaffold(
appBar: AppBar(
title: const Text('RenderFlex OverFlow'),
body: const SizedBox(
width: 400.0,
child: Row(
children: <Widget>[
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed '
'do eiusmod tempor incididunt ut labore et dolore magna '
'aliqua. Ut enim ad minim veniam, quis nostrud '
'exercitation ullamco laboris nisi ut aliquip ex ea '
'commodo consequat.'