diff --git a/lib/screens/login.dart b/lib/screens/login.dart index 3d66e9a..245d485 100644 --- a/lib/screens/login.dart +++ b/lib/screens/login.dart @@ -140,57 +140,57 @@ class _LoginScreenState extends State { } }, ), - _buildAddItem( - text: 'GitLab Account by Token', - onTap: () async { - var result = - await Provider.of(context).showConfirm( - context, - Column( - children: [ - CupertinoTextField( - placeholder: 'Domain', - onChanged: (v) { - setState(() { - _gitlabDomain = v; - }); - }, - ), - SizedBox(height: 8), - CupertinoTextField( - placeholder: 'Access token', - onChanged: (v) { - setState(() { - _gitlabToken = v; - }); - }, - ), - SizedBox(height: 8), - Text( - 'GitTouch needs these permissions', - style: TextStyle( - fontSize: 14, fontWeight: FontWeight.w400), - ), - SizedBox(height: 8), - Text( - 'api, read_user, read_repository', - style: TextStyle( - fontSize: 16, color: theme.palette.primary), - ) - ], - ), - ); - if (result == true) { - try { - await auth.loginToGitlab(_gitlabDomain, _gitlabToken); - // TODO: Custom domain - } catch (err) { - Provider.of(context).showConfirm( - context, Text('Token invalid: $err')); - } - } - }, - ) + // _buildAddItem( + // text: 'GitLab Account by Token', + // onTap: () async { + // var result = + // await Provider.of(context).showConfirm( + // context, + // Column( + // children: [ + // CupertinoTextField( + // placeholder: 'Domain', + // onChanged: (v) { + // setState(() { + // _gitlabDomain = v; + // }); + // }, + // ), + // SizedBox(height: 8), + // CupertinoTextField( + // placeholder: 'Access token', + // onChanged: (v) { + // setState(() { + // _gitlabToken = v; + // }); + // }, + // ), + // SizedBox(height: 8), + // Text( + // 'GitTouch needs these permissions', + // style: TextStyle( + // fontSize: 14, fontWeight: FontWeight.w400), + // ), + // SizedBox(height: 8), + // Text( + // 'api, read_user, read_repository', + // style: TextStyle( + // fontSize: 16, color: theme.palette.primary), + // ) + // ], + // ), + // ); + // if (result == true) { + // try { + // await auth.loginToGitlab(_gitlabDomain, _gitlabToken); + // // TODO: Custom domain + // } catch (err) { + // Provider.of(context).showConfirm( + // context, Text('Token invalid: $err')); + // } + // } + // }, + // ) ], ), ),