当前位置:网站首页>Summary of flutter
Summary of flutter
2022-07-21 03:34:00 【Blue se cornflower】
1. If you're running pod install manually, make sure flutter pub get is executed first"
cd To Engineering iOS The directory executes the following commands :flutter packages get
2. Air safety operation :
flutter run --no-sound-null-safety
3. establish Flutter Specify language when project :
flutter create -i objc -a java
4.Tabbar
class MyApp extends StatelessWidget {
MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false, // debug Icon
home: Tabs(),
theme: ThemeData(primarySwatch: Colors.lightBlue),
);
}
}
class _TabsState extends State<Tabs> {
int _current = 0;
List pageList = [Home(), Product(), Discover(), MinePage()];
@override
Widget build(BuildContext context) {
return Scaffold(
body: this.pageList[this._current],
bottomNavigationBar: BottomNavigationBar(
iconSize: 40,
currentIndex: this._current,
type: BottomNavigationBarType.fixed,
onTap: (value) {
setState(() {
this._current = value;
});
},
items: [
BottomNavigationBarItem(icon: Icon(Icons.home), label: ' home page '),
BottomNavigationBarItem(icon: Icon(Icons.catching_pokemon), label: ' project '),
BottomNavigationBarItem(icon: Icon(Icons.badge_sharp), label: ' Find out '),
BottomNavigationBarItem(icon: Icon(Icons.settings), label: ' Set up '),
],
),
);
}
}
5 Navigation Navigation
return Scaffold(
appBar: AppBar(
title: Text(' title '),
),
body: Container(),
);
边栏推荐
猜你喜欢
论文学习---Non-parametric Statistical Learning for URLLC Transmission Rate Control
在Pycharm中打包(.py)文件成(.exe)文件
数仓技术实现
(1) Pytorch deep learning: linear model training
Select all on the current page of Ali vector Gallery
数仓基本架构--分层 各层功能
mysql 通过dts迁移至达梦
【深度学习】运用mnist数据集实例化一个简单的卷积神经网络
工具-IDEA 好看的样式字体/字号/
李宏毅2020机器学习笔记---P10 Classification
随机推荐
Flink-时间语义
MIMO-OFDM Wireless Communication Technology and matlab implementation (2) - Outdoor channel model under SISO
达梦索引管理
mysql_不区分大小写
数仓 -OLAP OLTP 建模方法
基于点云的深度学习方法综述
Flink SQL custom parsing map and array data types
计算前五个数阶乘之和
(五)PyQt5系列教程:使用Pycharm对PyQt5在串口助手参数选项进行内部逻辑设计(二)
Li Hongyi 2020 machine learning notes -- P10 classification
Data warehouse OLAP OLTP modeling method
[deep learning] how to select the correct activation and loss function of the last layer for the model
Centos8 (Linux) 安装 redis
How to use idea to make jar packages
(九)PyTorch深度学习:卷积神经网络( GoogleNet网络架构中的 inception module 模块为本次卷积神经网络架构)
Paper learning -- resource allocation in EE urllc in relay system
达梦数据库TPCC性能测试
EndNote X9导入论文投稿的期刊参考文献格式
2D目标检测综述之神经网络篇
(六)PyTorch深度学习:加载数据集