当前位置:网站首页>Flutter “Hello world“ 程代码
Flutter “Hello world“ 程代码
2022-08-01 02:45:00 【小公鸡卡哇伊呀~】
代码如下:
// main.dart
import 'package:flutter/material.dart';
void main() {
runApp(MyClass());
}
class MyClass extends StatelessWidget {
Widget build(BuildContext context) {
return MaterialApp(home: Text('Hello world'));
}
}
build 函数是 Dart 和 Flutter 尝试在屏幕上绘制内容时最终调用的函数,因此 build 方法需要返回一个组件。
输出没有任何 styling:
边栏推荐
- Parse the bootargs from the device tree (dtb format data)
- 解决IDEA默认情况下新建文件时,右击,new,没有XML文件的问题
- IDEA does not recognize the module (there is no blue square in the lower right corner of the module)
- MySQL modifies SQL statements to optimize performance
- HCIP (14)
- 软考高级系统架构设计师系列之:信息系统基础知识
- Solve the problem that when IDEA creates a new file by default, right-click, new, there is no XML file
- ARM cross compilation
- Detailed explanation of TCP protocol
- 解决安装MySQL后,Excel打开很慢的问题
猜你喜欢

RTL8762DK RTC (5)

解决IDEA默认情况下新建文件时,右击,new,没有XML文件的问题

彻底关闭Chrome浏览器更新及右上角的更新提示

ARM cross compilation

MYSQL-Batch insert data

HCIP(15)
![ROS2 series of knowledge (4): understand the concept of [service]](/img/14/8de92a89d9c4b6476ac37408bc7788.png)
ROS2 series of knowledge (4): understand the concept of [service]

You need to know the TCP wave four times

Data Middle Office Construction (VII): Data Asset Management

RTL8762DK Lighting/LED (3)
随机推荐
SC7A20 (Silan Micro-Accelerometer) Example
When opening a MYSQL table, some can display editing, some do not, how to set.
IDEA debugging
Completely closed Chrome updated and in the top right corner of the tip
MYSQL two-phase commit
How to get started with YOLO?How to implement your own training set?
被 CSDN,伤透了心
开源项目站点必备&交流区功能
这个地图绘制工具太赞了,推荐~~
指定set 'execution.savepoint.path'后,重启flinksql报这个错是啥
手写二叉查找树及测试
IDEA does not recognize the module (there is no blue square in the lower right corner of the module)
By Value or By Reference
Device tree - conversion from dtb format to struct device node structure
Ordinary users cannot access HGFS directory
Chinese version of Pylint inspection rules
【Make YOLO Great Again】YOLOv1-v7全系列大解析(Neck篇)
Parse the bootargs from the device tree (dtb format data)
Basic usage concepts of vim
Summary of MVCC