2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【Flutter】FlutterでHello World

Last updated at Posted at 2019-10-22

開発環境
⭐️Flutter
(flutter_macos_v1.9.1+hotfix.5-stable)

⭐️Android Studio 3.5.1
⭐️Xcode11.2 beata

まず、Flutterのプロジェクトを作成します。
詳細については、下記に記載してます。

【Flutter】Flutterの環境構築
https://qiita.com/nonkapibara/items/b7d09bf48cb0b71035a8

エラーが発生した場合は、下記を参考にしてください
【Flutter】Android StudioでXcodeでエラーが発生した時の対応方法
https://qiita.com/nonkapibara/items/38d1a952c366fa339b18

「main.dart」を下記のように書き直す
スクリーンショット 2019-10-23 1.47.09.png

スクリーンショット 2019-10-23 1.49.22.png
import 'package:flutter/material.dart';

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

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'non Flutter Demo',
      home: new Scaffold(
        appBar: new AppBar(
          title: new Text('のんちゃん Flutter Demo'),
      ),
      body: new Center(
        child: new Text('Hello World'),
      ),
      ),
    );
  }
}

Androidエミュレーターで起動
スクリーンショット 2019-10-22 23.01.59.png

起動成功!

IOSシミュレーター起動
スクリーンショット 2019-10-23 0.13.29.png

起動成功!

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?