fixes issues

This commit is contained in:
mohammad
2024-12-01 09:41:59 +03:00
parent d9ef6de71a
commit 6f02459ad8
6 changed files with 35 additions and 23 deletions
@@ -36,7 +36,7 @@ class _RoomPageState extends State<RoomPage> {
final query = _searchController.text.toLowerCase();
setState(() {
_filteredDevices = widget.room.devices!
.where((device) => device.type!.toLowerCase().contains(query))
.where((device) => device.name!.toLowerCase().contains(query))
.toList();
});
}
@@ -51,7 +51,9 @@ class _RoomPageState extends State<RoomPage> {
decoration: InputDecoration(
hintText: 'Search',
hintStyle: const TextStyle(
color: ColorsManager.textGray, fontSize: 16, fontWeight: FontWeight.w400),
color: ColorsManager.textGray,
fontSize: 16,
fontWeight: FontWeight.w400),
prefixIcon: Container(
padding: const EdgeInsets.all(5.0),
margin: const EdgeInsets.all(10.0),