1. import 'package:flutter/material.dart';
    2. void main() {
    3. runApp(Text(
    4. 'Hello World',
    5. textDirection: TextDirection.ltr,
    6. ));
    7. }

    出来的效果极其简单,没有背景色,hello word在顶端,不能在简单了,再简单就会报错。比方说:
    textDirection: TextDirection.ltr,不能少,否则会报No Directionality widget found.
    image.png