2024-11-04 02:18:27 +00:00
|
|
|
import 'package:agrilink_vocpro/core/constant/app_theme.dart';
|
|
|
|
|
import 'package:agrilink_vocpro/features/setting/provider/setting_provider.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
|
|
|
|
|
|
class AccountScreen extends StatelessWidget {
|
|
|
|
|
const AccountScreen({super.key});
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
return Scaffold(
|
|
|
|
|
appBar: AppBar(
|
2024-11-06 01:54:08 +00:00
|
|
|
title: Text('Detail Akun', style: AppTheme.labelMedium),
|
2024-11-04 02:18:27 +00:00
|
|
|
centerTitle: true,
|
|
|
|
|
backgroundColor: Colors.white,
|
|
|
|
|
scrolledUnderElevation: 0,
|
|
|
|
|
),
|
|
|
|
|
body: Consumer<SettingProvider>(builder: (context, provider, child) {
|
|
|
|
|
return ListView(
|
|
|
|
|
padding: EdgeInsets.all(16.r),
|
|
|
|
|
children: [
|
|
|
|
|
ListTile(
|
|
|
|
|
title: Text('Username', style: AppTheme.labelMedium),
|
|
|
|
|
trailing: Text(provider.userName, style: AppTheme.labelSmall),
|
|
|
|
|
),
|
|
|
|
|
ListTile(
|
|
|
|
|
title: Text('Email', style: AppTheme.labelMedium),
|
|
|
|
|
trailing: Text(provider.userEmail, style: AppTheme.labelSmall),
|
|
|
|
|
),
|
|
|
|
|
ListTile(
|
|
|
|
|
title: Text('Name', style: AppTheme.labelMedium),
|
|
|
|
|
trailing: Text(provider.userFullName, style: AppTheme.labelSmall),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
);
|
|
|
|
|
}),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|