Flutter Text文本

 

 

import 'package:flutter/material.dart';

void main() {
  runApp(
    App()
  );
}

class App extends StatelessWidget{
  @override 
  Widget build(BuildContext context){
    return Center(
      child:Text(
        'hello word',
        textDirection: TextDirection.ltr,
        style: TextStyle(
          fontSize: 40.0,
          fontWeight: FontWeight.bold,
          color: Colors.yellow,
          ),
      ) ,
      );
  }
}

 

 

posted @ 2019-07-29 15:54 鸿鹄当高远 阅读(...) 评论(...) 编辑 收藏