添加空视图

This commit is contained in:
bluesea 2024-05-11 10:53:55 +08:00
parent 4be5680456
commit e6cef2a7a3
7 changed files with 23 additions and 0 deletions

View File

@ -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 [];
}
}