rename getter

properName -> displayName
This commit is contained in:
krawieck 2021-01-26 22:28:06 +01:00
parent 618b8c93e1
commit 5a449eb0be
3 changed files with 4 additions and 4 deletions

View File

@ -33,8 +33,8 @@ extension GetInstanceCommentView on Comment {
// TODO: change it to something more robust? regex?
String _extract(String s) => cleanUpUrl(s.split('/')[2]);
extension ProperName on UserSafe {
String get properName {
extension DisplayName on UserSafe {
String get displayName {
final name = () {
if (preferredUsername != null && preferredUsername != '') {
return preferredUsername;

View File

@ -216,7 +216,7 @@ class CommentWidget extends HookWidget {
}
// decide which username to use
final username = comment.creator.properName;
final username = comment.creator.displayName;
final body = () {
if (isDeleted.value) {

View File

@ -195,7 +195,7 @@ class PostWidget extends HookWidget {
text: 'by',
style: TextStyle(fontWeight: FontWeight.w300)),
TextSpan(
text: ' ${post.creator.properName}',
text: ' ${post.creator.displayName}',
style:
const TextStyle(fontWeight: FontWeight.w600),
recognizer: TapGestureRecognizer()