当前位置:网站首页>Shutter bottomnavigationbar with page switching example
Shutter bottomnavigationbar with page switching example
2022-06-29 20:55:00 【Boundless sky 6688】
Go straight to the code
class BottomNavigationBarPage extends StatefulWidget {
const BottomNavigationBarPage({super.key});
@override
State<BottomNavigationBarPage> createState() => HomeState();
}
class HomeState extends State<BottomNavigationBarPage> {
int _selectedIndex = 0;
late final PageController _controller;
List<Widget> list = [
const MessagePage(),
const MenuPage(),
const SettingPage(),
];
@override
void initState() {
super.initState();
_controller = PageController(initialPage: _selectedIndex);
}
@override
void dispose() {
_controller.dispose();
super.dispose();
}
@override
Widget build(BuildContext context) {
return Scaffold(
body: PageView.builder(
controller: _controller,
physics: const NeverScrollableScrollPhysics(), // No sliding
itemCount: list.length,
itemBuilder: (context, index) => list[index],
),
bot边栏推荐
- HAproxy + Keepalive实现LDAP代理服务
- Selection of materials for space conductive disc slip ring
- The reason why the log analysis tool of "operation and maintenance" is used more and more frequently
- Exercise 8 Chapter 8 Verilog finite state machine design -4 Verilog quartus Modelsim
- 「运维有小邓」审核并分析文件和文件夹访问权限
- 「运维有小邓」Active Directory 密码过期通知功能
- Cantata version 9.5 has officially passed the sgs-t Ü V certification and conforms to all major software safety standards
- 如何审核 Active Directory 用户账户更改?
- Navigation [microcomputer principle]
- Alibaba cloud released the atlas of China's robot industry (2022), 122 Pages pdf
猜你喜欢

Comparable comparator writing & ClassCastException class conversion exception

At least 3 years for learning amplifier?

期末复习【微机原理】

CAD assistant - 3D model format conversion tool

fastadmin后台设置单选按钮

Clock tree synthesis (CTS)

Chainsafe cross chain bridge deployment tutorial

路由汇总带来的三层环路-解决实验

Special training of C language array

Storage principle of string
随机推荐
60 days of remote office experience sharing | community essay solicitation
A Japanese Cherry sold at a sky high price of 1980 yuan. Netizen: I feel cheated after eating it
[today in history] June 29: SGI and MIPS merged; Microsoft acquires PowerPoint developer; News corporation sells MySpace
WIN10设置自动拨号联网任务,实现开机、断网自动重连
Uncover the secret! Pay attention to those machines under the membership system!
Rsync 建立多目录模块的方法
[a must for reptiles - > scrapy framework from black iron to king] first chapter - detailed explanation of 10000 character blog posts (recommended Collection)
LSF bsub command
输入年份与月份,求该月共有多少天
The explain statement in MySQL queries whether SQL is indexed, and several types in extra collate and summarize
Stm32cubemx learning (6) external interrupt experiment
How to call RFC function of ABAP on premises system directly in SAP BTP ABAP programming environment
"Xiaodeng" ad domain delegation for operation and maintenance
如何从外表判断导电滑环的质量
Comparable comparator writing & ClassCastException class conversion exception
高校如何基于云原生构建面向未来的智慧校园?全栈云原生VS传统技术架构
Gstreamer应用开发实战指南(五)
Jupyter service installation and startup
解释PBR纹理贴图(texture-maps)
TMUX settings