TextPainter RTL (#11888)
This commit is contained in:
7
examples/hello_world/README.md
Normal file
7
examples/hello_world/README.md
Normal file
@@ -0,0 +1,7 @@
|
||||
```
|
||||
# To run the Hello World demo:
|
||||
flutter run
|
||||
|
||||
# To run the Hello World demo showing Arabic:
|
||||
flutter run lib/arabic.dart
|
||||
```
|
||||
7
examples/hello_world/lib/arabic.dart
Normal file
7
examples/hello_world/lib/arabic.dart
Normal file
@@ -0,0 +1,7 @@
|
||||
// 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 'package:flutter/widgets.dart';
|
||||
|
||||
void main() => runApp(const Center(child: const Text('برنامج أهلا بالعالم', textDirection: TextDirection.rtl)));
|
||||
@@ -4,4 +4,4 @@
|
||||
|
||||
import 'package:flutter/widgets.dart';
|
||||
|
||||
void main() => runApp(const Center(child: const Text('Hello, world!')));
|
||||
void main() => runApp(const Center(child: const Text('Hello, world!', textDirection: TextDirection.ltr)));
|
||||
|
||||
Reference in New Issue
Block a user