-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Display test result info and add padding for scrollbar (#89)
- Loading branch information
Showing
4 changed files
with
57 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
frontend/lib/ui/artefact_dialog/test_result_expandable.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:yaru_widgets/yaru_widgets.dart'; | ||
|
||
import '../../models/test_result.dart'; | ||
import '../spacing.dart'; | ||
|
||
class TestResultExpandable extends StatelessWidget { | ||
const TestResultExpandable({super.key, required this.testResult}); | ||
|
||
final TestResult testResult; | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return YaruExpandable( | ||
expandButtonPosition: YaruExpandableButtonPosition.start, | ||
header: Text(testResult.name), | ||
child: Padding( | ||
padding: const EdgeInsets.only(left: Spacing.level5), | ||
child: Column( | ||
children: [ | ||
if (testResult.category != '') | ||
YaruTile( | ||
title: const Text('Category'), | ||
subtitle: Text(testResult.category), | ||
), | ||
if (testResult.comment != '') | ||
YaruTile( | ||
title: const Text('Comment'), | ||
subtitle: Text(testResult.comment), | ||
), | ||
if (testResult.ioLog != '') | ||
YaruTile( | ||
title: const Text('IO Log'), | ||
subtitle: Text(testResult.ioLog), | ||
), | ||
], | ||
), | ||
), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters