Skip to content

Commit

Permalink
fix: position order widget
Browse files Browse the repository at this point in the history
  • Loading branch information
rajuAhmed1705 committed Jun 30, 2024
1 parent cbac18e commit 2a0a796
Showing 1 changed file with 23 additions and 35 deletions.
58 changes: 23 additions & 35 deletions designer_v2/lib/features/monitor/study_monitor_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -89,51 +89,39 @@ class StudyMonitorScreen extends StudyPageWidget {
const Color inactiveColor = Color(0xFFD55E00);
const Color dropoutColor = Color(0xFF0072B2);
const Color completedColor = Color(0xFF009E73);

return Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
const Spacer(),
SizedBox(
width: 420,
width: 400,
child: Column(
mainAxisAlignment: MainAxisAlignment.end,
crossAxisAlignment: CrossAxisAlignment.end,
children: [
Text('${tr.monitoring_total}: $total', textAlign: TextAlign.end),
const SizedBox(height: 10),
Row(
mainAxisAlignment: MainAxisAlignment.end,
children: [
Positioned(
right: 0,
top: 0,
child: Text('${tr.monitoring_total}: $total'),
_buildStat(
percentage: activePercentage,
color: activeColor,
tooltip: tr.monitoring_active,
),
],
),
Stack(
children: [
Row(
children: [
const Spacer(),
_buildStat(
percentage: activePercentage,
color: activeColor,
tooltip: tr.monitoring_active,
),
_buildStat(
percentage: inactivePercentage,
color: inactiveColor,
tooltip: tr.monitoring_inactive,
),
_buildStat(
percentage: dropoutPercentage,
color: dropoutColor,
tooltip: tr.monitoring_dropout,
),
_buildStat(
percentage: completedPercentage,
color: completedColor,
tooltip: tr.monitoring_completed,
),
],
_buildStat(
percentage: inactivePercentage,
color: inactiveColor,
tooltip: tr.monitoring_inactive,
),
_buildStat(
percentage: dropoutPercentage,
color: dropoutColor,
tooltip: tr.monitoring_dropout,
),
_buildStat(
percentage: completedPercentage,
color: completedColor,
tooltip: tr.monitoring_completed,
),
],
),
Expand Down

0 comments on commit 2a0a796

Please sign in to comment.