From 05eba7cba2ec2eb0e4059ca3cd6370dea5c0fe37 Mon Sep 17 00:00:00 2001 From: Valentin CZERYBA Date: Wed, 19 Jun 2024 23:44:45 +0200 Subject: [PATCH] fix upgrade --- covas_mobile/lib/MyHomePage.dart | 2 +- covas_mobile/lib/classes/alert.dart | 1 - covas_mobile/lib/main.dart | 2 +- covas_mobile/lib/variable/globals.dart | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/covas_mobile/lib/MyHomePage.dart b/covas_mobile/lib/MyHomePage.dart index 96fa99c..08e1f28 100644 --- a/covas_mobile/lib/MyHomePage.dart +++ b/covas_mobile/lib/MyHomePage.dart @@ -192,7 +192,7 @@ class _MyHomePageState extends State with ShowErrorDialog { ), Text( '$listUser', - style: Theme.of(context).textTheme, + style: Theme.of(context).textTheme.headlineMedium, ), ], ), diff --git a/covas_mobile/lib/classes/alert.dart b/covas_mobile/lib/classes/alert.dart index dfcac3f..ea691aa 100644 --- a/covas_mobile/lib/classes/alert.dart +++ b/covas_mobile/lib/classes/alert.dart @@ -12,7 +12,6 @@ mixin ShowErrorDialog on State { ElevatedButton( child: Text("OK"), style: ElevatedButton.styleFrom( - primary: Colors.red, padding: EdgeInsets.symmetric(horizontal: 50, vertical: 20), textStyle: TextStyle(fontSize: 15, fontWeight: FontWeight.normal)), diff --git a/covas_mobile/lib/main.dart b/covas_mobile/lib/main.dart index 2e90286..4a59d90 100644 --- a/covas_mobile/lib/main.dart +++ b/covas_mobile/lib/main.dart @@ -127,7 +127,7 @@ class _LoginDemoState extends State with ShowErrorDialog { var jwt = prefs.getString("jwt") ?? ""; var user = prefs.getString("user") ?? ""; if ((jwt.isNotEmpty) && (user.isNotEmpty)) { - var urlToken = Uri.parse("http://${globals.api}/token"); + var urlToken = Uri.parse("https://${globals.api}/token"); var responseToken = await http.get(urlToken, headers: {HttpHeaders.cookieHeader: '${jwt}; ${user}'}); diff --git a/covas_mobile/lib/variable/globals.dart b/covas_mobile/lib/variable/globals.dart index 98b9df8..30de4ad 100644 --- a/covas_mobile/lib/variable/globals.dart +++ b/covas_mobile/lib/variable/globals.dart @@ -1 +1 @@ -String api = "10.0.2.2:8083/api"; +String api = "backend.valczeryba.ovh";