👽 Remove outdated field in sticker
This commit is contained in:
@@ -198,7 +198,7 @@ class StickerPackDetailContent extends HookConsumerWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
child: CloudImageWidget(
|
child: CloudImageWidget(
|
||||||
fileId: sticker.imageId,
|
fileId: sticker.image.id,
|
||||||
fit: BoxFit.contain,
|
fit: BoxFit.contain,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -318,7 +318,7 @@ class StickerForm extends HookConsumerWidget {
|
|||||||
|
|
||||||
final formKey = useMemoized(() => GlobalKey<FormState>(), []);
|
final formKey = useMemoized(() => GlobalKey<FormState>(), []);
|
||||||
|
|
||||||
final image = useState<String?>(id == null ? '' : sticker.value?.imageId);
|
final image = useState<String?>(id == null ? '' : sticker.value?.image.id);
|
||||||
final imageController = useTextEditingController(text: image.value);
|
final imageController = useTextEditingController(text: image.value);
|
||||||
final slugController = useTextEditingController(
|
final slugController = useTextEditingController(
|
||||||
text: id == null ? '' : sticker.value?.slug,
|
text: id == null ? '' : sticker.value?.slug,
|
||||||
@@ -326,8 +326,8 @@ class StickerForm extends HookConsumerWidget {
|
|||||||
|
|
||||||
useEffect(() {
|
useEffect(() {
|
||||||
if (sticker.value != null) {
|
if (sticker.value != null) {
|
||||||
image.value = sticker.value!.imageId;
|
image.value = sticker.value!.image.id;
|
||||||
imageController.text = sticker.value!.imageId;
|
imageController.text = sticker.value!.image.id;
|
||||||
slugController.text = sticker.value!.slug;
|
slugController.text = sticker.value!.slug;
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
@@ -168,7 +168,7 @@ class MarketplaceStickerPackDetailScreen extends HookConsumerWidget {
|
|||||||
child: AspectRatio(
|
child: AspectRatio(
|
||||||
aspectRatio: 1,
|
aspectRatio: 1,
|
||||||
child: CloudImageWidget(
|
child: CloudImageWidget(
|
||||||
fileId: sticker.imageId,
|
fileId: sticker.image.id,
|
||||||
fit: BoxFit.contain,
|
fit: BoxFit.contain,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -613,7 +613,7 @@ class ChatInput extends HookConsumerWidget {
|
|||||||
width: 28,
|
width: 28,
|
||||||
height: 28,
|
height: 28,
|
||||||
child: CloudImageWidget(
|
child: CloudImageWidget(
|
||||||
fileId: sticker.imageId,
|
fileId: sticker.image.id,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -202,7 +202,7 @@ class ComposeFormFields extends HookConsumerWidget {
|
|||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
width: 28,
|
width: 28,
|
||||||
height: 28,
|
height: 28,
|
||||||
child: CloudImageWidget(fileId: sticker.imageId),
|
child: CloudImageWidget(fileId: sticker.image.id),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -263,7 +263,7 @@ class _StickersGrid extends StatelessWidget {
|
|||||||
child: AspectRatio(
|
child: AspectRatio(
|
||||||
aspectRatio: 1,
|
aspectRatio: 1,
|
||||||
child: CloudImageWidget(
|
child: CloudImageWidget(
|
||||||
fileId: sticker.imageId,
|
fileId: sticker.image.id,
|
||||||
fit: BoxFit.contain,
|
fit: BoxFit.contain,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user