@@ -413,9 +413,30 @@ class _ProfileDataTable extends StatelessWidget {
413413 @override
414414 Widget build (BuildContext context) {
415415 final store = PerAccountStoreWidget .of (context);
416+ final zulipLocalizations = ZulipLocalizations .of (context);
416417
417418 List <Widget > items = [];
418419
420+ final date = DateTime .tryParse (user.dateJoined);
421+ if (date != null ) {
422+ final localDate = date.toLocal ();
423+ final formattedDate = DateFormat .yMMMd ().format (localDate);
424+ final label = user.isImportedStub
425+ ? zulipLocalizations.profileDateImportedLabel
426+ : zulipLocalizations.profileDateJoinedLabel;
427+ items.add (Row (
428+ crossAxisAlignment: CrossAxisAlignment .baseline,
429+ textBaseline: localizedTextBaseline (context),
430+ children: [
431+ SizedBox (width: 100 ,
432+ child: Text (style: _TextStyles .customProfileFieldLabel (context),
433+ label)),
434+ const SizedBox (width: 8 ),
435+ Flexible (child: _TextWidget (text: formattedDate)),
436+ ]));
437+ items.add (const SizedBox (height: 8 ));
438+ }
439+
419440 final profileData = user.profileData;
420441 for (final realmField in store.customProfileFields) {
421442 final profileField = profileData? [realmField.id];
@@ -436,8 +457,6 @@ class _ProfileDataTable extends StatelessWidget {
436457 items.add (const SizedBox (height: 8 ));
437458 }
438459
439- if (items.isEmpty) return const SizedBox .shrink ();
440-
441460 return Column (children: [
442461 const SizedBox (height: 16 ),
443462 ...items
0 commit comments