Skip to content

Commit

Permalink
show fixed len grade
Browse files Browse the repository at this point in the history
  • Loading branch information
n1ghtbyte committed Oct 23, 2023
1 parent dcfec82 commit 5936f38
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions lib/pages/Teacher/Classes/AstaGraphs.dart
Original file line number Diff line number Diff line change
Expand Up @@ -502,8 +502,7 @@ class _AstaGraphsState extends State<AstaGraphs> {
builder: (context) =>
AstaSubGraph(
passedSummResult:
dt['Result']
.toString(),
dt['Result'],
passedSummDate:
dt['Created']
as Timestamp,
Expand Down
4 changes: 2 additions & 2 deletions lib/pages/Teacher/Classes/AstaSubGraph.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import 'package:printing/printing.dart';
import 'AstaReport.dart';

class AstaSubGraph extends StatefulWidget {
final String passedSummResult;
final double passedSummResult;
final Timestamp passedSummDate;
final String passedSummName;
final String passedSummDesc;
Expand Down Expand Up @@ -247,7 +247,7 @@ class _AstaSubGraphState extends State<AstaSubGraph> {
padding: EdgeInsets.all(14.0),
child: Text(
"${AppLocalizations.of(context)!.grade}: " +
widget.passedSummResult,
widget.passedSummResult.toStringAsFixed(2),
style: TextStyle(fontSize: 20),
),
),
Expand Down

0 comments on commit 5936f38

Please sign in to comment.