1// Copyright 2019 The Flutter Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5import 'package:flutter/widgets.dart'; 6 7void main() { 8 const Text text = Text('Hello, world!', textDirection: TextDirection.ltr); 9 // These calls must not result in an error. They behave differently in 10 // release mode compared to debug or profile. 11 // The test will grep logcat for any errors emitted by Flutter. 12 print(text.toDiagnosticsNode()); 13 print(text.toStringDeep()); 14 runApp( 15 const Center( 16 child: text, 17 ), 18 ); 19} 20