forked from eatvio/eatvio_app
Imporoved state control for Profile Screen
This commit is contained in:
@@ -76,10 +76,10 @@ class AdditionalInformationScreen extends StatelessWidget {
|
||||
headers: {'Content-Type': 'application/json'},
|
||||
body: json.encode(sheet),
|
||||
);
|
||||
var res = await jsonDecode(response.body);
|
||||
final box = await Hive.openBox('token');
|
||||
final token = json.decode(response.body)['token'];
|
||||
final token = res['token']['plainTextToken'];
|
||||
box.put('token', token);
|
||||
print('token: ${box.get('token')}');
|
||||
Navigator.pushNamed(
|
||||
context,
|
||||
AppRoutes.myProfile,
|
||||
|
||||
Reference in New Issue
Block a user