どうも、ちょげ(@chogetarou)です。
Textを横並びにする方法を紹介します。
方法

Textを横並びにするには、Rowを使います。
まず、Rowを配置します。
そして、Rowの引数「children」に、横並びにするTextのリストを指定します。
Row(
children: [
//横並びにするテキストをカンマ区切りで指定
Text('テキスト'),
Text('テキスト2'),
Text('テキスト3'),
・・・
],
),
Rowを使うことで、Textを横並びにすることが出来ます。
使用例

@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: [
Text('Hello,'),
Text('Flutter.'),
Text('こんにちは、'),
Text('フラッター'),
],
),
),
);
}
コメント