bug fixes and read sensors states

This commit is contained in:
Abdullah Alassaf
2024-06-06 11:14:25 +03:00
parent 631ba53d7a
commit 76f5c6d325
20 changed files with 561 additions and 547 deletions

View File

@ -40,8 +40,9 @@ class HomeSettingsView extends StatelessWidget {
Flexible(
child: TextField(
textAlign: TextAlign.end,
readOnly: true,
decoration: InputDecoration(
hintText: 'Enter Name',
hintText: space?.name ?? 'Enter Name',
hintStyle: context.bodyMedium.copyWith(color: Colors.grey),
border: InputBorder.none,
),
@ -55,15 +56,16 @@ class HomeSettingsView extends StatelessWidget {
height: 1,
color: ColorsManager.greyColor,
),
Container(
width: MediaQuery.sizeOf(context).width,
child: GestureDetector(
onTap: () {
Navigator.of(context).push(CustomPageRoute(
builder: (context) => RoomsView(
unitId: space?.id ?? '',
)));
},
GestureDetector(
onTap: () {
Navigator.of(context).push(CustomPageRoute(
builder: (context) => RoomsView(
unitId: space?.id ?? '',
)));
},
child: Container(
width: MediaQuery.sizeOf(context).width,
padding: const EdgeInsets.all(4),
child: const Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [