Skip to content

Commit

Permalink
fix: the sticker keys are not consistent with swift
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanfei-1 committed Jun 30, 2024
1 parent e8025db commit 503a649
Show file tree
Hide file tree
Showing 18 changed files with 17 additions and 17 deletions.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
32 changes: 16 additions & 16 deletions lib/util/stickers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,22 @@
*/

enum Stickers {
danxi_angry,
danxi_call,
danxi_cate,
danxi_dying,
danxi_egg,
danxi_fright,
danxi_heart,
danxi_hug,
danxi_overwhelm,
danxi_roll,
danxi_roped,
danxi_sleep,
danxi_swim,
danxi_thrill,
danxi_touchFish,
danxi_twin;
dx_angry,
dx_call,
dx_cate,
dx_dying,
dx_egg,
dx_fright,
dx_heart,
dx_hug,
dx_overwhelm,
dx_roll,
dx_roped,
dx_sleep,
dx_swim,
dx_thrill,
dx_touchFish,
dx_twin;
}

String? getStickerAssetPath(String stickerName) {
Expand Down
2 changes: 1 addition & 1 deletion lib/widget/forum/render/render_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ final BaseRender kMarkdownRender = (BuildContext context,
},
imageBuilder: (Uri uri, String? title, String? alt) {
// render stickers first
if (uri.toString().contains("danxi_")) {
if (uri.toString().contains("dx_")) {
var asset = getStickerAssetPath(uri.toString());
// print(asset);
if (asset != null) {
Expand Down

0 comments on commit 503a649

Please sign in to comment.