From e31246c892eca47b4db4da41fec291e41ce144a9 Mon Sep 17 00:00:00 2001 From: zoe Date: Fri, 17 Jun 2022 13:03:52 +0200 Subject: [PATCH] prepare for oauth --- lib/api/{ => auth}/oauth.dart | 0 lib/api/auth/secrets.dart | 0 lib/i18n/en_US.json | 2 +- lib/pages/login.dart | 2 +- 4 files changed, 2 insertions(+), 2 deletions(-) rename lib/api/{ => auth}/oauth.dart (100%) create mode 100644 lib/api/auth/secrets.dart diff --git a/lib/api/oauth.dart b/lib/api/auth/oauth.dart similarity index 100% rename from lib/api/oauth.dart rename to lib/api/auth/oauth.dart diff --git a/lib/api/auth/secrets.dart b/lib/api/auth/secrets.dart new file mode 100644 index 0000000..e69de29 diff --git a/lib/i18n/en_US.json b/lib/i18n/en_US.json index 11469c9..b3add8c 100644 --- a/lib/i18n/en_US.json +++ b/lib/i18n/en_US.json @@ -1,5 +1,5 @@ { - "greeting": "Hello!", + "greeting": "hello!", "user-id-not-valid": "Sorry, this user id doesn't look quite right... ", "user-id": "user id", "user-id-example": "user@example.com", diff --git a/lib/pages/login.dart b/lib/pages/login.dart index 3205e75..83c0c9e 100644 --- a/lib/pages/login.dart +++ b/lib/pages/login.dart @@ -60,7 +60,7 @@ class _LoginFormState extends State { ), TextButton.icon( onPressed: () { - final isValid = formKey.currentState!.validate(); + formKey.currentState!.validate(); }, icon: const Icon(Icons.login), label: Text("authorize-in-browser".i18n()))