Adjust login screen
This commit is contained in:
parent
d5640cb8a8
commit
3d40283a70
|
|
@ -45,7 +45,7 @@ const String kYouTubeUrl =
|
||||||
|
|
||||||
const String kReleaseNotesUrl =
|
const String kReleaseNotesUrl =
|
||||||
'https://github.com/invoiceninja/invoiceninja/wiki/Release-notes';
|
'https://github.com/invoiceninja/invoiceninja/wiki/Release-notes';
|
||||||
const String kDocsUrl = 'https://invoiceninja.github.io/docs';
|
const String kDocsUrl = 'https://invoiceninja.github.io';
|
||||||
const String kDocsCustomDomainUrl =
|
const String kDocsCustomDomainUrl =
|
||||||
'https://invoiceninja.github.io/docs/hosted-custom-domain';
|
'https://invoiceninja.github.io/docs/hosted-custom-domain';
|
||||||
const String kDocsCustomFieldsUrl =
|
const String kDocsCustomFieldsUrl =
|
||||||
|
|
|
||||||
|
|
@ -895,7 +895,7 @@ class SidebarFooter extends StatelessWidget {
|
||||||
IconButton(
|
IconButton(
|
||||||
icon: Icon(Icons.help_outline),
|
icon: Icon(Icons.help_outline),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
String url = kDocsUrl;
|
String url = kDocsUrl + '/docs';
|
||||||
final uiState = state.uiState;
|
final uiState = state.uiState;
|
||||||
final subRoute = uiState.baseSubRoute;
|
final subRoute = uiState.baseSubRoute;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -600,7 +600,7 @@ class _LoginState extends State<LoginView> {
|
||||||
!isApple() &&
|
!isApple() &&
|
||||||
(!kIsWeb || !state.authState.isSelfHost))
|
(!kIsWeb || !state.authState.isSelfHost))
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.only(top: 10, bottom: 8),
|
padding: const EdgeInsets.only(top: 6, bottom: 10),
|
||||||
child: TextButton(
|
child: TextButton(
|
||||||
child: Text(
|
child: Text(
|
||||||
_createAccount
|
_createAccount
|
||||||
|
|
@ -673,22 +673,39 @@ class _LoginState extends State<LoginView> {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
if (!_recoverPassword && kIsWeb)
|
if (!_recoverPassword)
|
||||||
InkWell(
|
if (kIsWeb)
|
||||||
onTap: () => launch(getNativeAppUrl(platform)),
|
InkWell(
|
||||||
child: Padding(
|
onTap: () => launch(getNativeAppUrl(platform)),
|
||||||
padding: const EdgeInsets.all(14),
|
child: Padding(
|
||||||
child: Row(
|
padding: const EdgeInsets.all(14),
|
||||||
mainAxisSize: MainAxisSize.max,
|
child: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisSize: MainAxisSize.max,
|
||||||
children: [
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
Icon(getNativeAppIcon(platform), size: 16),
|
children: [
|
||||||
SizedBox(width: 8),
|
Icon(getNativeAppIcon(platform), size: 16),
|
||||||
Text('$platform ${localization.app}')
|
SizedBox(width: 8),
|
||||||
],
|
Text('$platform ${localization.app}')
|
||||||
|
],
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
)
|
||||||
),
|
else
|
||||||
|
InkWell(
|
||||||
|
onTap: () => launch(kDocsUrl),
|
||||||
|
child: Padding(
|
||||||
|
padding: const EdgeInsets.all(14),
|
||||||
|
child: Row(
|
||||||
|
mainAxisSize: MainAxisSize.max,
|
||||||
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
|
children: [
|
||||||
|
Icon(Icons.book, size: 16),
|
||||||
|
SizedBox(width: 8),
|
||||||
|
Text(localization.documentation)
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
)
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue