You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

32 lines
928 B

import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:youtribe_lib/store/user.dart';
class Account extends StatelessWidget {
final UserController userController = Get.put(UserController());
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('my-acount'.tr),
),
body: Center(
child: Obx(
() => (Column(
children: [
Text('id: ${userController.user['id']}'),
Text('first name: ${userController.user['first_name']}'),
Text('last name: ${userController.user['last_name']}'),
Text('email: ${userController.user['email']}'),
OutlinedButton(
onPressed: () => Get.toNamed('/account_form'),
child: Text('edit'.tr),
),
],
)),
),
),
);
}
}