47 lines
1.3 KiB
Dart
47 lines
1.3 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:pcastlivetv/stores/login_store.dart';
|
|
import 'package:velocity_x/velocity_x.dart';
|
|
|
|
class NcUserInfo extends StatelessWidget {
|
|
const NcUserInfo({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
LoginStore store = VxState.store as LoginStore;
|
|
|
|
return Card(
|
|
child: Container(
|
|
padding: const EdgeInsets.all(10),
|
|
child: Row(
|
|
children: [
|
|
const SizedBox(width: 10),
|
|
Column(
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: [
|
|
Text(
|
|
store.userName!,
|
|
style: const TextStyle(
|
|
fontSize: 18,
|
|
fontWeight: FontWeight.bold,
|
|
),
|
|
),
|
|
Text(
|
|
store.userType! == 'A'
|
|
? 'Administrador'
|
|
: store.userType! == 'R'
|
|
? 'Revendedor'
|
|
: 'User',
|
|
style: const TextStyle(
|
|
fontSize: 14,
|
|
fontWeight: FontWeight.w300,
|
|
),
|
|
),
|
|
],
|
|
),
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|