CONVERT KEY TO SUPER PARAMETER KYS
This commit is contained in:
@@ -11,7 +11,7 @@ import 'package:flutter/material.dart';
|
||||
import 'homework_attachment_tile.i18n.dart';
|
||||
|
||||
class HomeworkAttachmentTile extends StatelessWidget {
|
||||
const HomeworkAttachmentTile(this.attachment, {Key? key}) : super(key: key);
|
||||
const HomeworkAttachmentTile(this.attachment, {super.key});
|
||||
|
||||
final HomeworkAttachment attachment;
|
||||
|
||||
@@ -31,13 +31,13 @@ class HomeworkAttachmentTile extends StatelessWidget {
|
||||
builder: (context) => ImageView(snapshot.data!),
|
||||
));
|
||||
},
|
||||
borderRadius: BorderRadius.circular(12.0),
|
||||
child: Ink.image(
|
||||
image: FileImage(File(snapshot.data ?? "")),
|
||||
height: 200.0,
|
||||
width: double.infinity,
|
||||
fit: BoxFit.cover,
|
||||
),
|
||||
borderRadius: BorderRadius.circular(12.0),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
@@ -9,8 +9,7 @@ import 'package:provider/provider.dart';
|
||||
|
||||
class HomeworkTile extends StatelessWidget {
|
||||
const HomeworkTile(this.homework,
|
||||
{Key? key, this.onTap, this.padding, this.censored = false})
|
||||
: super(key: key);
|
||||
{super.key, this.onTap, this.padding, this.censored = false});
|
||||
|
||||
final Homework homework;
|
||||
final void Function()? onTap;
|
||||
|
||||
@@ -12,7 +12,7 @@ import 'package:provider/provider.dart';
|
||||
import 'homework_view.i18n.dart';
|
||||
|
||||
class HomeworkView extends StatelessWidget {
|
||||
const HomeworkView(this.homework, {Key? key}) : super(key: key);
|
||||
const HomeworkView(this.homework, {super.key});
|
||||
|
||||
final Homework homework;
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ import 'package:filcnaplo_mobile_ui/common/widgets/homework/homework_view.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class HomeworkViewable extends StatelessWidget {
|
||||
const HomeworkViewable(this.homework, {Key? key}) : super(key: key);
|
||||
const HomeworkViewable(this.homework, {super.key});
|
||||
|
||||
final Homework homework;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user