TextPainter RTL (#11888)

This commit is contained in:
Ian Hickson
2017-09-07 16:57:38 -07:00
committed by GitHub
parent f4ccb4b6a4
commit ca7d2d23cf
144 changed files with 2223 additions and 1019 deletions

View 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
```

View 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)));

View File

@@ -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)));