// Copyright 2015 The Chromium 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 'dart:ui';
import 'package:test_api/test_api.dart' hide TypeMatcher, isInstanceOf;
void main() {
test('Should be able to build and layout a paragraph', () {
final ParagraphBuilder builder = ParagraphBuilder(ParagraphStyle());
builder.addText('Hello');
final Paragraph paragraph = builder.build();
expect(paragraph, isNotNull);
paragraph.layout(const ParagraphConstraints(width: 800.0));
expect(paragraph.width, isNonZero);
expect(paragraph.height, isNonZero);
});
}
-
Chris Bracken authored
All embedders of Flutter within Google have all been updated to an engine version that includes the const constructor added in flutter/engine#7346 and rolled into the framework in flutter/flutter#26252. This reverts commit 88b77a7d. This fixes https://github.com/flutter/flutter/issues/26390.