mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2026-10-27 04:47:56 +00:00
Semi-implemented getting spaces feature
This commit is contained in:
@@ -46,7 +46,10 @@ class DevicesViewBody extends StatelessWidget {
|
||||
},
|
||||
children: [
|
||||
const WizardPage(),
|
||||
...SpacesCubit.get(context).selectedSpace.rooms.map(
|
||||
...SpacesCubit.get(context)
|
||||
.selectedSpace!
|
||||
.rooms!
|
||||
.map(
|
||||
(room) {
|
||||
return RoomPage(
|
||||
room: room,
|
||||
|
||||
@@ -40,15 +40,15 @@ class RoomsSlider extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
),
|
||||
...SpacesCubit.get(context).selectedSpace.rooms.map(
|
||||
...SpacesCubit.get(context).selectedSpace!.rooms!.map(
|
||||
(room) => Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 15),
|
||||
child: InkWell(
|
||||
onTap: () {
|
||||
SpacesCubit.get(context).roomSliderPageChanged(
|
||||
SpacesCubit.get(context)
|
||||
.selectedSpace
|
||||
.rooms
|
||||
.selectedSpace!
|
||||
.rooms!
|
||||
.indexOf(room));
|
||||
},
|
||||
child: TitleMedium(
|
||||
|
||||
Reference in New Issue
Block a user