mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-07-17 02:25:16 +00:00
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:
@ -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(' ');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user