hello world

Posted sea-stream

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了hello world相关的知识,希望对你有一定的参考价值。

 

// Copyright 2018 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import package:flutter/material.dart;

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: Welcome to Flutter,
      home: Scaffold(
        appBar: AppBar(
          title: Text(Welcome to Flutter),
        ),
        body: Center(
          child: Text(Hello World),
        ),
      ),
    );
  }
}

运行效果

技术图片

 

 

 

 

 

 

以上是关于hello world的主要内容,如果未能解决你的问题,请参考以下文章

Hello World代码

Hello World代码

怎么用maven写出hello world

第一行代码Hello,World!

hello.equals(hello)的代码值是多少?

Hello,World!