添加空视图
This commit is contained in:
parent
4be5680456
commit
e6cef2a7a3
@ -1,6 +1,7 @@
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:flutter/widgets.dart';
|
||||
|
||||
class TabbarPageView extends GetView {
|
||||
const TabbarPageView({super.key});
|
||||
@ -16,4 +17,26 @@ class TabbarPageView extends GetView {
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
//初始化地步tabbar的选项
|
||||
List<BottomNavigationBarItem> getTabarItem(){
|
||||
return [ const BottomNavigationBarItem(
|
||||
icon: Icon(Icons.home),
|
||||
label: "Home"
|
||||
),
|
||||
const BottomNavigationBarItem(
|
||||
icon: Icon(Icons.book),
|
||||
label: "Collection"
|
||||
),
|
||||
const BottomNavigationBarItem(
|
||||
icon: Icon(Icons.music_video),
|
||||
label: "My"
|
||||
),
|
||||
];
|
||||
}
|
||||
|
||||
//返回每个tabitem对应控制器视图,必须一一对应
|
||||
List<widget> getPages(){
|
||||
return [];
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user