当前位置:网站首页>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篮球裁判火了,走步算得特别准,就问哈登慌不慌
- ThreadLocal的简单理解
- 1-hour live broadcast recruitment order: industry big names share dry goods, and enterprise registration opens丨qubit·viewpoint
- Information system project managers must memorize the core test sites (63) The main process of project portfolio management & DIPP analysis
- 合并两个有序列表
- 问题来了:4GB物理内存的机器上申请8G内存能成功吗?
- 金融业“限薪令”出台/ 软银出售过半阿里持仓/ DeepMind新实验室成立... 今日更多新鲜事在此...
- 软件测试——金融测试类面试题,看完直接去面试了
- 二叉树的序列化和反序列化
- AQS同步组件-FutureTask解析和用例
猜你喜欢
Manchester city launch emotional intelligence scarf can be detected, give the fans
Shell之常用小工具(sort、uniq、tr、cut)
API调用,API传参,面向对接开发,你真的会写接口文档吗?
[Interview high-frequency questions] Linked list high-frequency questions that can be gradually optimized
IDEA close/open reference prompt Usages
#物联网征文#小熊派设备开发实战
Fragment中嵌套ViewPager数据空白页异常问题分析
2022 Niu Ke Duo School (6) M. Z-Game on grid
Shell正则表达式,三剑客之grep命令
Byte Qiu Zhao confused me on both sides, and asked me under what circumstances would the SYN message be discarded?
随机推荐
李开复花上千万投的缝纫机器人,团队出自大疆
WeChat side: what is consistent hashing, usage scenarios, and what problems does it solve?
在北极都可以穿短袖了,温度飙升至32.5℃
【微服务~远程调用】整合RestTemplate、WebClient、Feign
Shell之常用小工具(sort、uniq、tr、cut)
报告:想学AI的学生数量已涨200%,老师都不够用了
Blazor Server (9) from scratch -- modify Layout
1-hour live broadcast recruitment order: industry big names share dry goods, and enterprise registration opens丨qubit·viewpoint
900页数学论文证明旋转的黑洞不会爆炸,丘成桐:30多年来广义相对论首次重大突破...
Scala 高阶(七):集合内容汇总(上篇)
鹅厂机器狗花式穿越10m梅花桩:前空翻、单桩跳、起身作揖...全程不打一个趔趄...
字符串转换整数 (atoi)
Batch大小不一定是2的n次幂!ML资深学者最新结论
World's 4th mad scientist dies on his 103rd birthday
关于Retrofit网络请求URL中含有可变参数的处理
Rust从入门到精通04-数据类型
Adalvo acquires its first branded product, Onsolis
数据挖掘-05
Gumbel_Softmax 概要
保存Simulink仿真模型为图片或者PDF的方法