Add link to client portal

This commit is contained in:
Hillel Coren 2021-06-21 18:28:06 +03:00
parent a1964dfff6
commit dfc9ab7515
1 changed files with 8 additions and 0 deletions

View File

@ -248,6 +248,14 @@ class _AccountOverview extends StatelessWidget {
secondLabel: localization.expiresOn,
secondValue: formatDate(account.planExpires, context),
),
if (state.userCompany.ninjaPortalUrl.isNotEmpty)
Padding(
padding: const EdgeInsets.only(left: 20, top: 16, right: 20),
child: OutlinedButton(
child: Text(localization.viewPortal.toUpperCase()),
onPressed: () => launch(state.userCompany.ninjaPortalUrl),
),
),
FormCard(
children: [
SwitchListTile(