in ui/lib/modules/workstations/my_workstations.dart [32:72]
Widget build(BuildContext context, WidgetRef ref) {
final user = ref.read(authRepositoryProvider).currentUser()!;
final ldap = user.email.toString().split('@')[0];
return Column(
children: [
_buildSubHead(context),
SingleChildScrollView(
child: Padding(
padding: const EdgeInsets.all(20.0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Row(
children: [
Text(
"Available Workstations (${ldap})",
style: Theme.of(context).textTheme.titleMedium,
),
IconButton(
tooltip: 'Refresh',
onPressed: () async {
ref.invalidate(allWorkstationsProvider);
},
icon: Icon(
Icons.refresh,
color: Colors.blue,
),
),
],
),
SizedBox(height: 12),
_buildWorkstationsList(context: context, ref: ref),
],
),
),
),
],
);
}