show img size

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-05-16 17:23:09 +08:00
parent 0c60800b36
commit 88b7f82406
22 changed files with 122 additions and 38 deletions

View File

@@ -2057,11 +2057,13 @@ class Picture extends $pb.GeneratedMessage {
$core.String? imgSrc,
$core.double? imgWidth,
$core.double? imgHeight,
$core.double? imgSize,
}) {
final result = create();
if (imgSrc != null) result.imgSrc = imgSrc;
if (imgWidth != null) result.imgWidth = imgWidth;
if (imgHeight != null) result.imgHeight = imgHeight;
if (imgSize != null) result.imgSize = imgSize;
return result;
}
@@ -2082,6 +2084,7 @@ class Picture extends $pb.GeneratedMessage {
..aOS(1, _omitFieldNames ? '' : 'imgSrc')
..aD(2, _omitFieldNames ? '' : 'imgWidth')
..aD(3, _omitFieldNames ? '' : 'imgHeight')
..aD(4, _omitFieldNames ? '' : 'imgSize')
..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
@@ -2128,6 +2131,15 @@ class Picture extends $pb.GeneratedMessage {
$core.bool hasImgHeight() => $_has(2);
@$pb.TagNumber(3)
void clearImgHeight() => $_clearField(3);
@$pb.TagNumber(4)
$core.double get imgSize => $_getN(3);
@$pb.TagNumber(4)
set imgSize($core.double value) => $_setDouble(3, value);
@$pb.TagNumber(4)
$core.bool hasImgSize() => $_has(3);
@$pb.TagNumber(4)
void clearImgSize() => $_clearField(4);
}
class ReplyCardLabel extends $pb.GeneratedMessage {

View File

@@ -807,13 +807,15 @@ const Picture$json = {
{'1': 'img_src', '3': 1, '4': 1, '5': 9, '10': 'imgSrc'},
{'1': 'img_width', '3': 2, '4': 1, '5': 1, '10': 'imgWidth'},
{'1': 'img_height', '3': 3, '4': 1, '5': 1, '10': 'imgHeight'},
{'1': 'img_size', '3': 4, '4': 1, '5': 1, '10': 'imgSize'},
],
};
/// Descriptor for `Picture`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List pictureDescriptor = $convert.base64Decode(
'CgdQaWN0dXJlEhcKB2ltZ19zcmMYASABKAlSBmltZ1NyYxIbCglpbWdfd2lkdGgYAiABKAFSCG'
'ltZ1dpZHRoEh0KCmltZ19oZWlnaHQYAyABKAFSCWltZ0hlaWdodA==');
'ltZ1dpZHRoEh0KCmltZ19oZWlnaHQYAyABKAFSCWltZ0hlaWdodBIZCghpbWdfc2l6ZRgEIAEo'
'AVIHaW1nU2l6ZQ==');
@$core.Deprecated('Use replyCardLabelDescriptor instead')
const ReplyCardLabel$json = {