mirror of
https://github.com/wger-project/flutter.git
synced 2026-02-18 00:17:48 +01:00
Marked as '@immutable'
This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its instance fields aren't final: WorkoutForm._plan
This commit is contained in:
@@ -28,7 +28,7 @@ import 'package:wger/models/gallery/image.dart' as gallery;
|
||||
import 'package:wger/providers/gallery.dart';
|
||||
|
||||
class ImageForm extends StatefulWidget {
|
||||
late gallery.Image _image;
|
||||
late final gallery.Image _image;
|
||||
|
||||
ImageForm([gallery.Image? image]) {
|
||||
_image = image ?? gallery.Image.emtpy();
|
||||
|
||||
Reference in New Issue
Block a user