Finish up connections

This commit is contained in:
2025-06-17 23:49:46 +08:00
parent 9b67d58ee4
commit eb4d2c2e2f
4 changed files with 195 additions and 85 deletions

14
lib/services/text.dart Normal file
View File

@ -0,0 +1,14 @@
extension StringExtension on String {
String capitalizeEachWord() {
if (isEmpty) return this;
return split(' ')
.map(
(word) =>
word.isNotEmpty
? '${word[0].toUpperCase()}${word.substring(1).toLowerCase()}'
: '',
)
.join(' ');
}
}