TF-517 Show app version on ManageAccount screen
This commit is contained in:
@@ -101,7 +101,7 @@ class MailboxDashBoardController extends ReloadableController {
|
||||
dispatchRoute(AppRoutes.THREAD);
|
||||
_setSessionCurrent();
|
||||
_getUserProfile();
|
||||
_initPackageInfo();
|
||||
_getAppVersion();
|
||||
super.onReady();
|
||||
}
|
||||
|
||||
@@ -213,9 +213,9 @@ class MailboxDashBoardController extends ReloadableController {
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> _initPackageInfo() async {
|
||||
Future<void> _getAppVersion() async {
|
||||
final info = await PackageInfo.fromPlatform();
|
||||
log('MailboxDashBoardController::_initPackageInfo(): ${info.version}');
|
||||
log('MailboxDashBoardController::_getAppVersion(): ${info.version}');
|
||||
appInformation.value = info;
|
||||
}
|
||||
|
||||
|
||||
@@ -35,6 +35,7 @@ class ManageAccountDashBoardController extends ReloadableController {
|
||||
@override
|
||||
void onReady() {
|
||||
_getArguments();
|
||||
_getAppVersion();
|
||||
super.onReady();
|
||||
}
|
||||
|
||||
@@ -73,6 +74,12 @@ class ManageAccountDashBoardController extends ReloadableController {
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> _getAppVersion() async {
|
||||
final info = await PackageInfo.fromPlatform();
|
||||
log('MailboxDashBoardController::_getAppVersion(): ${info.version}');
|
||||
appInformation.value = info;
|
||||
}
|
||||
|
||||
void _getUserProfile() async {
|
||||
consumeState(_getUserProfileInteractor.execute());
|
||||
}
|
||||
|
||||
+6
-6
@@ -63,8 +63,8 @@ class IdentityInfoTileBuilder extends StatelessWidget {
|
||||
Expanded(child: Text(_identity?.email ?? '',
|
||||
style: const TextStyle(fontWeight: FontWeight.normal, fontSize: 15, color: AppColor.colorHintSearchBar)))
|
||||
])),
|
||||
if (_identity?.replyTo != null) const SizedBox(height: 10),
|
||||
if (_identity?.replyTo != null)
|
||||
if (_identity?.replyTo != null && _identity?.replyTo?.isNotEmpty == true) const SizedBox(height: 10),
|
||||
if (_identity?.replyTo != null && _identity?.replyTo?.isNotEmpty == true)
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 12),
|
||||
child: Row(children: [
|
||||
@@ -75,8 +75,8 @@ class IdentityInfoTileBuilder extends StatelessWidget {
|
||||
Expanded(child: Text(_identity?.replyTo?.listEmailAddressToString(isFullEmailAddress: true) ?? '',
|
||||
style: const TextStyle(fontWeight: FontWeight.normal, fontSize: 15, color: AppColor.colorHintSearchBar)))
|
||||
])),
|
||||
if (_identity?.cc != null) const SizedBox(height: 6),
|
||||
if (_identity?.cc != null)
|
||||
if (_identity?.cc != null && _identity?.cc?.isNotEmpty == true) const SizedBox(height: 6),
|
||||
if (_identity?.cc != null && _identity?.cc?.isNotEmpty == true)
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 12),
|
||||
child: Row(children: [
|
||||
@@ -93,8 +93,8 @@ class IdentityInfoTileBuilder extends StatelessWidget {
|
||||
Expanded(child: Text(_identity?.cc?.listEmailAddressToString(isFullEmailAddress: true) ?? '',
|
||||
style: const TextStyle(fontWeight: FontWeight.normal, fontSize: 15, color: AppColor.colorHintSearchBar)))
|
||||
])),
|
||||
if (_identity?.bcc != null) const SizedBox(height: 6),
|
||||
if (_identity?.bcc != null)
|
||||
if (_identity?.bcc != null && _identity?.bcc?.isNotEmpty == true) const SizedBox(height: 6),
|
||||
if (_identity?.bcc != null && _identity?.bcc?.isNotEmpty == true)
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 12),
|
||||
child: Row(children: [
|
||||
|
||||
Reference in New Issue
Block a user