当前位置:网站首页>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
边栏推荐
- 1小时直播招募令:行业大咖干货分享,企业报名开启丨量子位·视点
- 又有大厂员工连续加班倒下/ 百度搜狗取消快照/ 马斯克生父不为他骄傲...今日更多新鲜事在此...
- Here comes the question: Can I successfully apply for 8G memory on a machine with 4GB physical memory?
- Byte Qiu Zhao confused me on both sides, and asked me under what circumstances would the SYN message be discarded?
- 【小程序】低代码+小游戏=小游戏可视化开发
- PM2 configuration file
- Adalvo收购其首个品牌产品Onsolis
- WeChat payment development process
- 十分钟教会你如何使用VitePress搭建及部署个人博客站点
- MySQL principle and optimization of Group By optimization techniques
猜你喜欢
redis库没法引入
Byte Qiu Zhao confused me on both sides, and asked me under what circumstances would the SYN message be discarded?
放下手机吧:实验表明花20分钟思考和上网冲浪同样快乐
1小时直播招募令:行业大咖干货分享,企业报名开启丨量子位·视点
中科院打脸谷歌:普通电脑追上量子优越性,几小时搞定原本要一万年的计算...
Programmer's Exclusive Romance - Use 3D Engine to Realize Fireworks in 5 Minutes
WeChat side: what is consistent hashing, usage scenarios, and what problems does it solve?
曼城推出可检测情绪的智能围巾,把球迷给整迷惑了
How should the acceptance criteria for R&D requirements be written?| Agile Practices
一甲子,正青春,CCF创建六十周年庆典在苏州举行
随机推荐
报告:想学AI的学生数量已涨200%,老师都不够用了
链表噩梦之一?5000多字带你弄清它的来龙去脉
听声辨物,这是AI视觉该干的???|ECCV 2022
鹅厂机器狗花式穿越10m梅花桩:前空翻、单桩跳、起身作揖...全程不打一个趔趄...
Programmer's Exclusive Romance - Use 3D Engine to Realize Fireworks in 5 Minutes
用皮肤“听”音乐,网友戴上这款装备听音乐会:仿佛住在钢琴里
一甲子,正青春,CCF创建六十周年庆典在苏州举行
Flutter入门进阶之旅(四)文本输入Widget TextField
WeChat side: what is consistent hashing, usage scenarios, and what problems does it solve?
无重复字符的最长子串
【无标题】
两个链表相加
C# Get system installed .NET version
JD.com architects tidy up: what are the core technical knowledge points of jvm and performance tuning
ABAP 报表中如何以二进制方式上传本地文件试读版
太卷了... 腾讯一面被问到内存满了,会发生什么?
PM2 configuration file
Report: The number of students who want to learn AI has increased by 200%, and there are not enough teachers
内网穿透工具ngrok使用教程
[Interview high-frequency questions] Linked list high-frequency questions that can be gradually optimized