当前位置:网站首页>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
边栏推荐
- Fragment中嵌套ViewPager数据空白页异常问题分析
- 2022 Niu Ke Duo School (6) M. Z-Game on grid
- 自定义VIEW实现应用内消息提醒上下轮播
- Nature:猪死亡1小时后,器官再次运转
- ABAP interview questions: how to use the System CALL interface of the ABAP programming language, direct execution ABAP server operating System's shell command?
- 链表噩梦之一?5000多字带你弄清它的来龙去脉
- AI basketball referee, walking is special, ask harden care don't care
- 合并两个有序列表
- 标准C语言学习总结14
- WebView注入Js代码实现大图自适应屏幕点击图片预览详情
猜你喜欢
内网穿透工具ngrok使用教程
保存Simulink仿真模型为图片或者PDF的方法
箭头函数和普通函数的常见区别
阻塞、非阻塞、多路复用、同步、异步、BIO、NIO、AIO 一锅端
HAproxy:负载均衡
腾讯欲成育碧最大股东/ 米哈游招NLP内容生成研究员/ AI发现四千余物种濒临灭绝...今日更多新鲜事在此...
WeChat side: what is consistent hashing, usage scenarios, and what problems does it solve?
无需精子卵子子宫体外培育胚胎,Cell论文作者这番话让网友们炸了
[Microservice ~ Remote Call] Integrate RestTemplate, WebClient, Feign
LeetCode #101. 对称二叉树
随机推荐
#Internet of Things essay#Xiaoxiong pie equipment development actual combat
FFmpeg库在win10上配置使用(不配置libx264)
我们真的需要DApp吗?App真的不能满足我们的幻想吗?
罗振宇折戟创业板/ B站回应HR称用户是Loser/ 腾讯罗技年内合推云游戏掌机...今日更多新鲜事在此...
MySQL principle and optimization of Group By optimization techniques
苹果Meta都在冲的Pancake技术,中国VR团队YVR竟抢先交出产品答卷
Flutter入门进阶之旅(三)Text Widgets
redis库没法引入
智驾科技完成C1轮融资,此前2轮已融4.5亿元
h264协议
两分钟录音就可秒变语言通!火山语音音色复刻技术如何修炼而成?
荣耀携手Blue Yonder,加快企业战略增长
HAproxy: load balancing
ABAP interview questions: how to use the System CALL interface of the ABAP programming language, direct execution ABAP server operating System's shell command?
Adalvo acquires its first branded product, Onsolis
1小时直播招募令:行业大咖干货分享,企业报名开启丨量子位·视点
Experiment record: the process of building a network
ABP 6.0.0-rc.1的新特性
标准C语言学习总结14
shell脚本------函数的格式,传参,变量,递归,数组