diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..fe18b51 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,31 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "absensi_sas_flutter_web", + "request": "launch", + "type": "dart", + "args": ["--web-port","5000"] + }, + { + "name": "absensi_sas_flutter", + "request": "launch", + "type": "dart" + }, + { + "name": "absensi_sas_flutter (profile mode)", + "request": "launch", + "type": "dart", + "flutterMode": "profile" + }, + { + "name": "absensi_sas_flutter (release mode)", + "request": "launch", + "type": "dart", + "flutterMode": "release" + } + ] +} \ No newline at end of file diff --git a/lib/app/constant.dart b/lib/app/constant.dart index 943ee5e..2e7438d 100644 --- a/lib/app/constant.dart +++ b/lib/app/constant.dart @@ -5,9 +5,9 @@ class Constant { // static double designWidth = 1440; // base url graphql - // static String baseURLGraphQl = "http://devone.aplikasi.web.id:3300/query"; + static String baseURLGraphQl = "http://devone.aplikasi.web.id:3300/query"; - static String baseURLGraphQl = "http://localhost:8080/query"; + // static String baseURLGraphQl = "http://localhost:8080/query"; static String bearerName = "absensi-sas"; static String accountGoogle = "absensi-google-account"; diff --git a/lib/provider/google_login_provider.dart b/lib/provider/google_login_provider.dart index ab2a95a..02646fd 100644 --- a/lib/provider/google_login_provider.dart +++ b/lib/provider/google_login_provider.dart @@ -1,8 +1,11 @@ import 'package:google_sign_in/google_sign_in.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; +const String googleClientID = "856240587825-klh0dfjc44bovajg1rpq5vbvs4g7rh5j.apps.googleusercontent.com"; + final googleSignInProvider = StateProvider((ref) { return GoogleSignIn( + clientId: googleClientID, scopes: [ 'email', 'https://www.googleapis.com/auth/contacts.readonly', diff --git a/web/index.html b/web/index.html index fa6554d..688cf1a 100644 --- a/web/index.html +++ b/web/index.html @@ -24,6 +24,8 @@ + + @@ -32,28 +34,10 @@ absensi_sas_flutter - - +