mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-11-27 08:14:55 +00:00
AC devices page implemented
AC Cubit Add
New Devices Cubit Arch will be used
Devices Cubit (for devices categories, and devices page)
{
AC cubit,
Lights cubit.
... }
Replaced AssetsManager with Assets Class (auto generated)
This commit is contained in:
@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
import 'package:syncrow_app/features/menu/bloc/menu_cubit.dart';
|
||||
import 'package:syncrow_app/features/menu/view/widgets/menu_list.dart';
|
||||
import 'package:syncrow_app/features/menu/view/widgets/profile_tab.dart';
|
||||
|
||||
class MenuView extends StatelessWidget {
|
||||
const MenuView({super.key});
|
||||
@ -15,10 +16,12 @@ class MenuView extends StatelessWidget {
|
||||
return SingleChildScrollView(
|
||||
physics: const BouncingScrollPhysics(),
|
||||
child: Column(
|
||||
children: MenuCubit.of(context)
|
||||
.menuLists
|
||||
.map((list) => MenuList(listModel: list))
|
||||
.toList(),
|
||||
children: [
|
||||
const ProfileTab(),
|
||||
...MenuCubit.of(context)
|
||||
.menuLists
|
||||
.map((list) => MenuList(listModel: list))
|
||||
],
|
||||
),
|
||||
);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user