mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2026-10-24 15:07:56 +00:00
Modified Devices Pages
This commit is contained in:
@@ -65,12 +65,10 @@ class DevicesViewBody extends StatelessWidget {
|
||||
SpacesCubit.get(context).devicesPageController,
|
||||
count: 3,
|
||||
effect: const WormEffect(
|
||||
paintStyle: PaintingStyle.stroke,
|
||||
dotHeight: 8,
|
||||
dotWidth: 8,
|
||||
),
|
||||
onDotClicked: (index) {
|
||||
SpacesCubit.get(context).unselectRoom();
|
||||
},
|
||||
),
|
||||
),
|
||||
],
|
||||
|
||||
@@ -67,58 +67,6 @@ class RoomsSlider extends StatelessWidget {
|
||||
],
|
||||
),
|
||||
);
|
||||
|
||||
// SingleChildScrollView(
|
||||
// controller: SpacesCubit.get(context).roomsScrollController,
|
||||
// scrollDirection: Axis.horizontal,
|
||||
// child: Row(
|
||||
// mainAxisAlignment: MainAxisAlignment.start,
|
||||
// children: [
|
||||
// Padding(
|
||||
// padding: const EdgeInsets.symmetric(horizontal: 15),
|
||||
// child: InkWell(
|
||||
// onTap: () {
|
||||
// SpacesCubit.get(context).unselectRoom();
|
||||
// },
|
||||
// child: TitleMedium(
|
||||
// text: StringsManager.wizard,
|
||||
// style: context.titleMedium.copyWith(
|
||||
// fontSize: 25,
|
||||
// color: SpacesCubit.get(context).selectedRoom == null
|
||||
// ? ColorsManager.textPrimaryColor
|
||||
// : ColorsManager.textPrimaryColor.withOpacity(.2),
|
||||
// ),
|
||||
// ),
|
||||
// ),
|
||||
// ),
|
||||
// ...SpacesCubit.get(context).selectedSpace.rooms.map(
|
||||
// (room) => Padding(
|
||||
// padding: const EdgeInsets.symmetric(horizontal: 15),
|
||||
// child: InkWell(
|
||||
// onTap: () {
|
||||
// SpacesCubit.get(context).selectRoom(room);
|
||||
// },
|
||||
// child: TitleMedium(
|
||||
// text: room.name,
|
||||
// style: context.titleMedium.copyWith(
|
||||
// fontSize: 25,
|
||||
// color: SpacesCubit.get(context).selectedRoomIndex ==
|
||||
// SpacesCubit.get(context)
|
||||
// .selectedSpace
|
||||
// .rooms
|
||||
// .indexOf(room) +
|
||||
// 1
|
||||
// ? ColorsManager.textPrimaryColor
|
||||
// : ColorsManager.textPrimaryColor
|
||||
// .withOpacity(.2),
|
||||
// ),
|
||||
// ),
|
||||
// ),
|
||||
// ),
|
||||
// )
|
||||
// ],
|
||||
// ),
|
||||
// );
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user