Skip to content

Commit

Permalink
Add an i as help in textual sum for the pvalue and alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
yaramt committed Aug 29, 2024
1 parent 9740d69 commit c8c95cb
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,6 @@ class DescriptiveStatisticsWidget extends AverageSectionWidget {
child: Column(
children: [
_buildStatisticsTable(),
const Padding(
padding: EdgeInsets.only(top: 8.0),
child: Text(
'Level of significance: α = 0.05',
style: TextStyle(fontSize: 8, color: Colors.black),
textAlign: TextAlign.center,
),
),
],
),
),
Expand Down
73 changes: 67 additions & 6 deletions app/lib/screens/study/report/sections/results_textual_summary.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,73 @@ class TextualSummaryWidget extends AverageSectionWidget {
child: Column(
children: <Widget>[
const SizedBox(height: 4),
Text(
summaryText[0],
style: const TextStyle(
fontSize: 12,
color: Colors.black,
),
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Expanded(
child: Text(
summaryText[0],
style: const TextStyle(
fontSize: 12,
color: Colors.black,
),
),
),
IconButton(
icon: const Icon(Icons.info_outline),
tooltip: 'Significance level and p-value',
onPressed: () {
showDialog(
context: context,
builder: (BuildContext context) {
return AlertDialog(
title: const Text(
'Statistical Information'),
content: Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment:
CrossAxisAlignment.start,
children: [
const Text(
'The outcome is based on the following values:',
style: TextStyle(
fontSize: 16,
),
),
const SizedBox(height: 8),
Text(
'Level of significance α = 0.05',
style: TextStyle(
fontSize: 15,
fontWeight: FontWeight.bold,
color: Colors.black87,
),
),
const SizedBox(height: 2),
Text(
'P-value: 0.7',
style: TextStyle(
fontSize: 15,
fontWeight: FontWeight.bold,
color: Colors.black87,
),
),
],
),
actions: <Widget>[
TextButton(
child: const Text('OK'),
onPressed: () {
Navigator.of(context).pop();
},
),
],
);
},
);
},
),
],
),
],
),
Expand Down

0 comments on commit c8c95cb

Please sign in to comment.