mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-15 17:47:53 +00:00
Merge branch 'SP-1218' into feat/update-space-model
This commit is contained in:
@ -21,7 +21,9 @@ class CommunityTile extends StatelessWidget {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return CustomExpansionTile(
|
return Padding(
|
||||||
|
padding: const EdgeInsets.only(left: 16.0),
|
||||||
|
child: CustomExpansionTile(
|
||||||
title: title,
|
title: title,
|
||||||
initiallyExpanded: isExpanded,
|
initiallyExpanded: isExpanded,
|
||||||
isSelected: isSelected,
|
isSelected: isSelected,
|
||||||
@ -30,6 +32,6 @@ class CommunityTile extends StatelessWidget {
|
|||||||
},
|
},
|
||||||
onItemSelected: onItemSelected,
|
onItemSelected: onItemSelected,
|
||||||
children: children ?? [],
|
children: children ?? [],
|
||||||
);
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,10 +9,10 @@ import 'package:syncrow_web/pages/device_managment/water_heater/models/schedule_
|
|||||||
import 'package:syncrow_web/pages/visitor_password/model/device_model.dart';
|
import 'package:syncrow_web/pages/visitor_password/model/device_model.dart';
|
||||||
import 'package:syncrow_web/services/api/http_service.dart';
|
import 'package:syncrow_web/services/api/http_service.dart';
|
||||||
import 'package:syncrow_web/utils/constants/api_const.dart';
|
import 'package:syncrow_web/utils/constants/api_const.dart';
|
||||||
import 'package:syncrow_web/utils/constants/temp_const.dart';
|
|
||||||
|
|
||||||
class DevicesManagementApi {
|
class DevicesManagementApi {
|
||||||
Future<List<AllDevicesModel>> fetchDevices(String communityId, String spaceId, String projectId) async {
|
Future<List<AllDevicesModel>> fetchDevices(
|
||||||
|
String communityId, String spaceId, String projectId) async {
|
||||||
try {
|
try {
|
||||||
final response = await HTTPService().get(
|
final response = await HTTPService().get(
|
||||||
path: communityId.isNotEmpty && spaceId.isNotEmpty
|
path: communityId.isNotEmpty && spaceId.isNotEmpty
|
||||||
|
Reference in New Issue
Block a user