finished new exam tile
This commit is contained in:
@@ -6,14 +6,21 @@ import 'package:filcnaplo_mobile_ui/common/widgets/exam/exam_view.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class ExamViewable extends StatelessWidget {
|
||||
const ExamViewable(this.exam, {super.key});
|
||||
const ExamViewable(this.exam,
|
||||
{super.key, this.showSubject = true, this.tilePadding});
|
||||
|
||||
final Exam exam;
|
||||
final bool showSubject;
|
||||
final EdgeInsetsGeometry? tilePadding;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Viewable(
|
||||
tile: ExamTile(exam),
|
||||
tile: ExamTile(
|
||||
exam,
|
||||
showSubject: showSubject,
|
||||
padding: tilePadding,
|
||||
),
|
||||
view: CardHandle(child: ExamView(exam)),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user