Update presence sensor interface and add parameter dialog

- Add parameter dialog for adjusting sensitivity in presence sensor interface.
- Implement toTitleCase helper method in StringHelpers class.
- Update UI elements in the presence sensor interface for better user interaction.
This commit is contained in:
Mohammad Salameh
2024-04-22 09:14:02 +03:00
parent 506068474b
commit 2eeee63e1d
3 changed files with 235 additions and 6 deletions

View File

@ -61,4 +61,11 @@ class StringHelpers {
return 0;
}
}
static String toTitleCase(String text) {
return text
.split(' ')
.map((word) => word[0].toUpperCase() + word.substring(1))
.join(' ');
}
}