首页 > 其他 > 详细

hello world

时间:2020-01-04 13:59:21      阅读:79      评论:0      收藏:0      [点我收藏+]

 

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

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!