common oidc

Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
dignow
2023-07-20 08:05:38 +08:00
parent 6111042907
commit dab956fe85
10 changed files with 51 additions and 30 deletions

View File

@@ -2314,3 +2314,10 @@ Widget unreadTopRightBuilder(RxInt? count, {Widget? icon}) {
],
);
}
String toCapitalized(String s) {
if (s.isEmpty) {
return s;
}
return s.substring(0, 1).toUpperCase() + s.substring(1);
}