码迷,mamicode.com
首页 > 其他好文 > 详细

hello world

时间:2020-01-04 14:32:16      阅读:58      评论:0      收藏:0      [点我收藏+]

标签:package   span   body   info   isp   copy   source   end   get   

 

// 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

标签:package   span   body   info   isp   copy   source   end   get   

原文地址:https://www.cnblogs.com/sea-stream/p/12148668.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!