mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-21 11:22:16 +08:00
feat: article list
Closes #841 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -34,8 +34,6 @@ class Pic {
|
||||
num? size;
|
||||
String? liveUrl;
|
||||
|
||||
double? calHeight;
|
||||
|
||||
Pic.fromJson(Map<String, dynamic> json) {
|
||||
url = json['url'];
|
||||
width = json['width'];
|
||||
@@ -45,12 +43,6 @@ class Pic {
|
||||
style = json['style'];
|
||||
liveUrl = json['live_url'];
|
||||
}
|
||||
|
||||
void onCalHeight(double maxWidth) {
|
||||
if (calHeight == null && height != null && width != null) {
|
||||
calHeight = maxWidth * height! / width!;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class Line {
|
||||
|
||||
Reference in New Issue
Block a user