1
0
Fork 0

Finish 0.1

This commit is contained in:
Florian RICHER (MrDev023) 2022-03-31 22:04:57 +02:00
parent 4e8fd12fdc
commit d19dc1ada7
3 changed files with 102 additions and 3 deletions

View file

@ -103,7 +103,8 @@ class Step3 extends StatelessWidget {
await dio.post('https://streamlabs.com/api/v1.0/token', data: data);
if (response.statusCode == HttpStatus.ok) {
prefs.setString('credentials', response.data.toString());
jsonDecode(response.data).forEach((key, value) =>
prefs.setString('credentials.$key', value.toString()));
Logger.log(LoggerType.info, this,
'Authorization success : ${response.data}');
showDialog(