fix upgrade

This commit is contained in:
Valentin CZERYBA 2024-06-19 23:44:45 +02:00
parent 1f185316a9
commit 05eba7cba2
4 changed files with 3 additions and 4 deletions

View File

@ -192,7 +192,7 @@ class _MyHomePageState extends State<MyHomePage> with ShowErrorDialog {
),
Text(
'$listUser',
style: Theme.of(context).textTheme,
style: Theme.of(context).textTheme.headlineMedium,
),
],
),

View File

@ -12,7 +12,6 @@ mixin ShowErrorDialog<T extends StatefulWidget> on State<T> {
ElevatedButton(
child: Text("OK"),
style: ElevatedButton.styleFrom(
primary: Colors.red,
padding: EdgeInsets.symmetric(horizontal: 50, vertical: 20),
textStyle:
TextStyle(fontSize: 15, fontWeight: FontWeight.normal)),

View File

@ -127,7 +127,7 @@ class _LoginDemoState extends State<LoginDemo> 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}'});

View File

@ -1 +1 @@
String api = "10.0.2.2:8083/api";
String api = "backend.valczeryba.ovh";