当前位置:网站首页>Flutter Getting Started and Advanced Tour (2) Hello Flutter
Flutter Getting Started and Advanced Tour (2) Hello Flutter
2022-08-09 13:15:00 【Xie Dong_】
Open question
It seems that almost any programming language we learn or master starts with Hello word. This blog post is the first sharing of the advanced level of Flutter entry. We also start with the simplest Hello world. As for the Flutter development environmentThe configuration of , and the introduction to the Dart language are not the content of this column, so I will not introduce it in detail. Readers can find out about it on their own google or Baidu.
Preparation
Before I start, I would like to introduce to you two commonly used components in Flutter, MaterialApp and Scaffold. Readers do not need to fully grasp them here.There are special topics to explain the two. Here, let’s first briefly understand that MaterialApp is an entry Widget that is commonly used in our app development and conforms to the Material Design design concept.From the literal meaning, you can see that Scaffold is also a scaffolding and a skeleton, that is, it serves as the skeleton of our app, and quickly helps us create a template that can be customized for secondary construction. We can do a lot of personalized UI on it.custom made.For this chapter of Hello Flutter, we can simply understand so much first. Readers don’t have to rush to grasp all the contents of Flutter immediately. Today, I will simply say hello to Flutter. It is enough to have a simple understanding. We will learn together slowly in the future.Various Widgets in Flutter.
Code:
import 'package:flutter/material.dart';void main() {runApp(new MaterialApp(home: new HelloFlutter()));}class HelloFlutter extends StatelessWidget {@overrideWidget build(BuildContext context) {return new Scaffold(appBar: new AppBar(title: new Text("Hello Flutter"),),body: new Center(child: new Text("Hello Flutter")),);}}
Next: Flutter Getting Started and Advanced Tour (3) Text Widgets
边栏推荐
- 你没见过的《老友记》镜头,AI给补出来了|ECCV 2022
- WebView注入Js代码实现大图自适应屏幕点击图片预览详情
- Flutter入门进阶之旅(四)文本输入Widget TextField
- C# Get system installed .NET version
- 26、管道参数替换命令xargs
- K个结点的组内逆序调整
- How to upload local file trial version in binary mode in ABAP report
- WeChat payment development process
- MySQL principle and optimization of Group By optimization techniques
- 【HCIP持续更新】IS-IS协议原理与配置
猜你喜欢
LeetCode热题(11.合并两个有序链表)
脱光衣服待着就能减肥,当真有这好事?
数据挖掘-05
IDEA close/open reference prompt Usages
"Digital Economy Panorama White Paper" Special Analysis of Banking Industry Intelligent Marketing Application Released
基于CAP组件实现补偿事务与幂等性保障
AQS Synchronization Component - FutureTask Analysis and Use Cases
MySQL principle and optimization of Group By optimization techniques
win10编译x264库(也有生成好的lib文件)
26、管道参数替换命令xargs
随机推荐
罗振宇折戟创业板/ B站回应HR称用户是Loser/ 腾讯罗技年内合推云游戏掌机...今日更多新鲜事在此...
内网穿透工具ngrok使用教程
Win10 compiles the x264 library (there are also generated lib files)
Manchester city launch emotional intelligence scarf can be detected, give the fans
Apexsqlrecover cannot connect to database
我们真的需要DApp吗?App真的不能满足我们的幻想吗?
#物联网征文#小熊派设备开发实战
We really need DApp?Really can't meet our fantasy App?
LeetCode #101. Symmetric Binary Tree
香港服务器如何进行加密?
你没见过的《老友记》镜头,AI给补出来了|ECCV 2022
水能自发变成“消毒水”,83岁斯坦福教授:揭示冬天容易得流感的部分原因...
Blocking, non-blocking, multiplexing, synchronous, asynchronous, BIO, NIO, AIO all in one pot
Flutter入门进阶之旅(十)Dialog&Toast
李开复花上千万投的缝纫机器人,团队出自大疆
位图与位运算
h264 protocol
注释、关键字、标识符的区别你知道吗?
Here comes the question: Can I successfully apply for 8G memory on a machine with 4GB physical memory?
HAproxy:负载均衡