feat: Enhance attendance chart visibility based on project selection
This commit is contained in:
parent
67d78f02b7
commit
99a9b47a19
@ -59,9 +59,27 @@ class _DashboardScreenState extends State<DashboardScreen> with UIMixin {
|
|||||||
MySpacing.height(12),
|
MySpacing.height(12),
|
||||||
_buildDashboardStats(),
|
_buildDashboardStats(),
|
||||||
MySpacing.height(24),
|
MySpacing.height(24),
|
||||||
AttendanceDashboardChart(),
|
GetBuilder<ProjectController>(
|
||||||
|
id: 'dashboard_controller',
|
||||||
|
builder: (projectController) {
|
||||||
|
final bool isProjectSelected =
|
||||||
|
projectController.selectedProject != null;
|
||||||
|
|
||||||
MySpacing.height(300),
|
return Opacity(
|
||||||
|
opacity: isProjectSelected ? 1.0 : 0.4,
|
||||||
|
child: IgnorePointer(
|
||||||
|
ignoring: !isProjectSelected,
|
||||||
|
child: Column(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
AttendanceDashboardChart(),
|
||||||
|
MySpacing.height(300),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
},
|
||||||
|
),
|
||||||
if (!hasMpin) ...[
|
if (!hasMpin) ...[
|
||||||
MyCard(
|
MyCard(
|
||||||
borderRadiusAll: 12,
|
borderRadiusAll: 12,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user