mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-07-17 02:25:16 +00:00
Hide unused widgets
This commit is contained in:
@ -288,31 +288,31 @@ class HomeCubit extends Cubit<HomeState> {
|
||||
static int pageIndex = 0;
|
||||
|
||||
static Map<String, List<Widget>> appBarActions = {
|
||||
'Dashboard': [
|
||||
// IconButton(
|
||||
// icon: const Icon(
|
||||
// Icons.add,
|
||||
// size: 25,
|
||||
// ),
|
||||
// style: ButtonStyle(
|
||||
// foregroundColor: WidgetStateProperty.all(ColorsManager.textPrimaryColor),
|
||||
// ),
|
||||
// onPressed: () {
|
||||
// Navigator.push(
|
||||
// NavigationService.navigatorKey.currentContext!,
|
||||
// CustomPageRoute(
|
||||
// builder: (context) => CurtainView(
|
||||
// curtain: DeviceModel(
|
||||
// name: "Curtain",
|
||||
// status: [StatusModel(code: "awd", value: 1)],
|
||||
// productType: DeviceType.Curtain,
|
||||
// ),
|
||||
// ),
|
||||
// ),
|
||||
// );
|
||||
// },
|
||||
// ),
|
||||
],
|
||||
// 'Dashboard': [
|
||||
// // IconButton(
|
||||
// // icon: const Icon(
|
||||
// // Icons.add,
|
||||
// // size: 25,
|
||||
// // ),
|
||||
// // style: ButtonStyle(
|
||||
// // foregroundColor: WidgetStateProperty.all(ColorsManager.textPrimaryColor),
|
||||
// // ),
|
||||
// // onPressed: () {
|
||||
// // Navigator.push(
|
||||
// // NavigationService.navigatorKey.currentContext!,
|
||||
// // CustomPageRoute(
|
||||
// // builder: (context) => CurtainView(
|
||||
// // curtain: DeviceModel(
|
||||
// // name: "Curtain",
|
||||
// // status: [StatusModel(code: "awd", value: 1)],
|
||||
// // productType: DeviceType.Curtain,
|
||||
// // ),
|
||||
// // ),
|
||||
// // ),
|
||||
// // );
|
||||
// // },
|
||||
// // ),
|
||||
// ],
|
||||
'Devices': [
|
||||
//TODO: to be checked
|
||||
// IconButton(
|
||||
@ -406,7 +406,7 @@ class HomeCubit extends Cubit<HomeState> {
|
||||
};
|
||||
|
||||
static Map<String, Widget?> appBarLeading = {
|
||||
'Dashboard': const AppBarHomeDropdown(),
|
||||
// 'Dashboard': const AppBarHomeDropdown(),
|
||||
'Devices': const AppBarHomeDropdown(),
|
||||
'Routine': const AppBarHomeDropdown(),
|
||||
'Menu': Padding(
|
||||
@ -421,7 +421,7 @@ class HomeCubit extends Cubit<HomeState> {
|
||||
};
|
||||
|
||||
static var bottomNavItems = [
|
||||
defaultBottomNavBarItem(icon: Assets.assetsIconsDashboard, label: 'Dashboard'),
|
||||
// defaultBottomNavBarItem(icon: Assets.assetsIconsDashboard, label: 'Dashboard'),
|
||||
// defaultBottomNavBarItem(icon: Assets.assetsIconslayout, label: 'Layout'),
|
||||
defaultBottomNavBarItem(icon: Assets.assetsIconsDevices, label: 'Devices'),
|
||||
defaultBottomNavBarItem(icon: Assets.assetsIconsRoutines, label: 'Routine'),
|
||||
@ -429,7 +429,7 @@ class HomeCubit extends Cubit<HomeState> {
|
||||
];
|
||||
|
||||
final List<Widget> pages = [
|
||||
const DashboardView(),
|
||||
// const DashboardView(),
|
||||
// const LayoutPage(),
|
||||
BlocProvider(
|
||||
create: (context) => DevicesCubit.getInstance(),
|
||||
|
Reference in New Issue
Block a user