| ページ一覧 | ブログ | twitter |  書式 | 書式(表) |

MyMemoWiki

「Flutter コードサンプル」の版間の差分

提供: MyMemoWiki
ナビゲーションに移動 検索に移動
(ページの作成:「Flutter|Dart| {{amazon|4798055832}}」)
 
2行目: 2行目:
  
 
{{amazon|4798055832}}
 
{{amazon|4798055832}}
 +
 +
====テキストのみ配置する====
 +
import 'package:flutter/material.dart';
 +
 +
void main() => runApp(MyApp());
 +
 +
class MyApp extends StatelessWidget {
 +
  @override
 +
  Widget build(BuildContext context) {
 +
    return new MaterialApp(
 +
      title: 'Flutter Sample',
 +
      home: Text(
 +
        'Hello, Flutter!!',
 +
        style: TextStyle(fontSize: 32.0),
 +
      ),
 +
    );
 +
  }
 +
}
 +
[[File:Flutter_simple.png]]

2020年3月15日 (日) 06:45時点における版

Flutter|Dart|

テキストのみ配置する

import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      title: 'Flutter Sample',
      home: Text(
        'Hello, Flutter!!',
        style: TextStyle(fontSize: 32.0),
      ),
    );
  }
}

Flutter simple.png