棉花app新增页面
This commit is contained in:
23
lib/component/img/img_preview_controller.dart
Normal file
23
lib/component/img/img_preview_controller.dart
Normal file
@@ -0,0 +1,23 @@
|
||||
import 'package:ef/ef.dart';
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
part 'img_preview_controller.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class ImgPreviewModel {
|
||||
//版本id
|
||||
String? url; //图片地址
|
||||
|
||||
|
||||
ImgPreviewModel();
|
||||
|
||||
static ImgPreviewModel fromJson(Map<String, dynamic> json) =>
|
||||
_$ImgPreviewModelFromJson(json);
|
||||
Map<String, dynamic> toJson() => _$ImgPreviewModelToJson(this);
|
||||
}
|
||||
|
||||
class ImgPreviewController extends GetControllerEx<ImgPreviewModel> {
|
||||
ImgPreviewController() {
|
||||
attr = GetModel(ImgPreviewModel()).obs;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user