**이 페이지에서 알 수 있는 내용 このページからわかること
- Text
- style: TextStyle
- fontSize
- color
- fontWeight
- decoration
- fontStyle
- backgroundColor
-overflow
-textAlign**
main.dart
...
...
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(widget.title),
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Container(
width: 50,
height: 20,
child: Text(
'flutter Labo',
style: TextStyle(
fontSize: 20,
color: Colors.red,
fontWeight: FontWeight.bold, // 글씨 굵기 설정 프로퍼티
decoration: TextDecoration.lineThrough, // 글씨 꾸미는 프로퍼티
fontStyle: FontStyle.italic, // 글씨체 설정 프로퍼티
backgroundColor: Colors.yellow // 텍스트가 있는 위치의 배경색 설정 프로퍼티
//fontFamily: // 외부에서 가져온 폰트를 쓸 수 있는 프로퍼티
),
overflow: TextOverflow.ellipsis, // 텍스트가 지정된 범위를 넘었을 경우 어떻게 할 것인지 설정하는 프로퍼티 ...으로 표시
textAlign: TextAlign.right, // 텍스트 정렬
),
),
],
),
),
);
}
}

Text
fontWeight
decoration
fontStyle
backgroundColor
fontFamilly
overflow
텍스트가 지정된 범위를 넘었을 경우 어떻게 할 것인지 설정하는 프로퍼티
文字列を入力し、画面上に出力してくれるウイジェット
文字列を入力するとき「’ ’」を使うし、「’ ’」を二回以上使って文字列を分けることができます。
文字の太さを設定するプロパティ
文字装飾のプロパティ (underline, overline)
書体設定プロパティ
テキストがある位置の背景色設定プロパティ
外部から持ってきたフォントを使えるプロパティ
テキストが指定された範囲を越した場合どのように処理するか設定するプロパティ