mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-01-15 10:38:41 +00:00
fixed some small issues
This commit is contained in:
parent
5b2e91964f
commit
e9fcfbefd9
2 changed files with 200 additions and 199 deletions
|
|
@ -26,202 +26,202 @@ class EmojiAnimation extends StatelessWidget {
|
||||||
final String emoji;
|
final String emoji;
|
||||||
final bool repeat;
|
final bool repeat;
|
||||||
static final Map<String, String> animatedIcons = {
|
static final Map<String, String> animatedIcons = {
|
||||||
"❤": "red_heart.json",
|
'❤': 'red_heart.json',
|
||||||
"😂": "joy.json",
|
'😂': 'joy.json',
|
||||||
"🔥": "fire.json",
|
'🔥': 'fire.json',
|
||||||
"💪": "muscle.json",
|
'💪': 'muscle.json',
|
||||||
"😭": "loudly-crying.json",
|
'😭': 'loudly-crying.json',
|
||||||
"🤯": "mind-blown.json",
|
'🤯': 'mind-blown.json',
|
||||||
"❤️🔥": "red_heart_fire.json",
|
'❤️🔥': 'red_heart_fire.json',
|
||||||
// "😁": "grinning.json",
|
// "😁": "grinning.json",
|
||||||
"😆": "laughing.json",
|
'😆': 'laughing.json',
|
||||||
"😅": "grin-sweat.json",
|
'😅': 'grin-sweat.json',
|
||||||
"🤣": "rofl.json",
|
'🤣': 'rofl.json',
|
||||||
"😉": "wink.json",
|
'😉': 'wink.json',
|
||||||
"😙": "kissing-smiling-eyes.json",
|
'😙': 'kissing-smiling-eyes.json',
|
||||||
"😘": "kissing-heart.json",
|
'😘': 'kissing-heart.json',
|
||||||
"🥰": "heart-face.json",
|
'🥰': 'heart-face.json',
|
||||||
"😍": "heart-eyes.json",
|
'😍': 'heart-eyes.json',
|
||||||
"🤩": "star-struck.json",
|
'🤩': 'star-struck.json',
|
||||||
"🥳": "partying-face.json",
|
'🥳': 'partying-face.json',
|
||||||
"🙃": "upside-down-face.json",
|
'🙃': 'upside-down-face.json',
|
||||||
"🥲": "happy-cry.json",
|
'🥲': 'happy-cry.json',
|
||||||
"😊": "blush.json",
|
'😊': 'blush.json',
|
||||||
"😏": "smirk.json",
|
'😏': 'smirk.json',
|
||||||
"🤤": "drool.json",
|
'🤤': 'drool.json',
|
||||||
"😋": "yum.json",
|
'😋': 'yum.json',
|
||||||
"😛": "stuck-out-tongue.json",
|
'😛': 'stuck-out-tongue.json',
|
||||||
"🤪": "zany-face.json",
|
'🤪': 'zany-face.json',
|
||||||
"🥴": "woozy.json",
|
'🥴': 'woozy.json',
|
||||||
"😔": "pensive.json",
|
'😔': 'pensive.json',
|
||||||
"🥺": "pleading.json",
|
'🥺': 'pleading.json',
|
||||||
"😬": "grimacing.json",
|
'😬': 'grimacing.json',
|
||||||
"😑": "expressionless.json",
|
'😑': 'expressionless.json',
|
||||||
"😐": "neutral-face.json",
|
'😐': 'neutral-face.json',
|
||||||
"🤐": "zipper-face.json",
|
'🤐': 'zipper-face.json',
|
||||||
"🤔": "thinking-face.json",
|
'🤔': 'thinking-face.json',
|
||||||
"🥱": "yawn.json",
|
'🥱': 'yawn.json',
|
||||||
"🤗": "hug-face.json",
|
'🤗': 'hug-face.json',
|
||||||
"😱": "screaming.json",
|
'😱': 'screaming.json',
|
||||||
"🤨": "raised-eyebrow.json",
|
'🤨': 'raised-eyebrow.json',
|
||||||
"🧐": "monocle.json",
|
'🧐': 'monocle.json',
|
||||||
"😒": "unamused.json",
|
'😒': 'unamused.json',
|
||||||
"🙄": "rolling-eyes.json",
|
'🙄': 'rolling-eyes.json',
|
||||||
"😤": "triumph.json",
|
'😤': 'triumph.json',
|
||||||
"🤬": "cursing.json",
|
'🤬': 'cursing.json',
|
||||||
"😞": "sad.json",
|
'😞': 'sad.json',
|
||||||
"😢": "cry.json",
|
'😢': 'cry.json',
|
||||||
"🙁": "frown.json",
|
'🙁': 'frown.json',
|
||||||
"😨": "scared.json",
|
'😨': 'scared.json',
|
||||||
"😳": "flushed.json",
|
'😳': 'flushed.json',
|
||||||
"😖": "scrunched-mouth.json",
|
'😖': 'scrunched-mouth.json',
|
||||||
"😵": "x-eyes.json",
|
'😵': 'x-eyes.json',
|
||||||
"🥶": "cold-face.json",
|
'🥶': 'cold-face.json',
|
||||||
"🥵": "hot-face.json",
|
'🥵': 'hot-face.json',
|
||||||
"🤮": "vomit.json",
|
'🤮': 'vomit.json',
|
||||||
"😴": "sleep.json",
|
'😴': 'sleep.json',
|
||||||
"🤒": "thermometer-face.json",
|
'🤒': 'thermometer-face.json',
|
||||||
"🤕": "bandage-face.json",
|
'🤕': 'bandage-face.json',
|
||||||
"🤥": "liar.json",
|
'🤥': 'liar.json',
|
||||||
"😇": "halo.json",
|
'😇': 'halo.json',
|
||||||
"🤠": "cowboy.json",
|
'🤠': 'cowboy.json',
|
||||||
"🤑": "money-face.json",
|
'🤑': 'money-face.json',
|
||||||
"🤓": "nerd-face.json",
|
'🤓': 'nerd-face.json',
|
||||||
"😎": "sunglasses-face.json",
|
'😎': 'sunglasses-face.json',
|
||||||
"🥸": "disguise.json",
|
'🥸': 'disguise.json',
|
||||||
"🤡": "clown.json",
|
'🤡': 'clown.json',
|
||||||
"💩": "poop.json",
|
'💩': 'poop.json',
|
||||||
"😈": "imp-smile.json",
|
'😈': 'imp-smile.json',
|
||||||
"👻": "ghost.json",
|
'👻': 'ghost.json',
|
||||||
"💀": "skull.json",
|
'💀': 'skull.json',
|
||||||
"⛄": "snowman.json",
|
'⛄': 'snowman.json',
|
||||||
"🎃": "jack-o-lantern.json",
|
'🎃': 'jack-o-lantern.json',
|
||||||
"🤖": "robot.json",
|
'🤖': 'robot.json',
|
||||||
"👽": "alien.json",
|
'👽': 'alien.json',
|
||||||
"😺": "smiley-cat.json",
|
'😺': 'smiley-cat.json',
|
||||||
"😸": "smile-cat.json",
|
'😸': 'smile-cat.json',
|
||||||
"😹": "joy-cat.json",
|
'😹': 'joy-cat.json',
|
||||||
"😻": "heart-eyes-cat.json",
|
'😻': 'heart-eyes-cat.json',
|
||||||
"😼": "smirk-cat.json",
|
'😼': 'smirk-cat.json',
|
||||||
"😽": "kissing-cat.json",
|
'😽': 'kissing-cat.json',
|
||||||
"🙀": "scream-cat.json",
|
'🙀': 'scream-cat.json',
|
||||||
"😿": "crying-cat-face.json",
|
'😿': 'crying-cat-face.json',
|
||||||
"😾": "pouting-cat.json",
|
'😾': 'pouting-cat.json',
|
||||||
"🙈": "see-no-evil-monkey.json",
|
'🙈': 'see-no-evil-monkey.json',
|
||||||
"🙉": "hear-no-evil-monkey.json",
|
'🙉': 'hear-no-evil-monkey.json',
|
||||||
"🙊": "speak-no-evil-monkey.json",
|
'🙊': 'speak-no-evil-monkey.json',
|
||||||
"🌟": "glowing-star.json",
|
'🌟': 'glowing-star.json',
|
||||||
"✨": "sparkles.json",
|
'✨': 'sparkles.json',
|
||||||
"⚡": "electricity.json",
|
'⚡': 'electricity.json',
|
||||||
"💥": "collision.json",
|
'💥': 'collision.json',
|
||||||
"💯": "100.json",
|
'💯': '100.json',
|
||||||
"🎉": "party-popper.json",
|
'🎉': 'party-popper.json',
|
||||||
"🎊": "confetti-ball.json",
|
'🎊': 'confetti-ball.json',
|
||||||
"🧡": "orange-heart.json",
|
'🧡': 'orange-heart.json',
|
||||||
"💛": "yellow-heart.json",
|
'💛': 'yellow-heart.json',
|
||||||
"💚": "green-heart.json",
|
'💚': 'green-heart.json',
|
||||||
"💙": "blue-heart.json",
|
'💙': 'blue-heart.json',
|
||||||
"💜": "purple-heart.json",
|
'💜': 'purple-heart.json',
|
||||||
"💘": "cupid.json",
|
'💘': 'cupid.json',
|
||||||
"💝": "gift-heart.json",
|
'💝': 'gift-heart.json',
|
||||||
"💖": "sparkling-heart.json",
|
'💖': 'sparkling-heart.json',
|
||||||
"💗": "heart-grow.json",
|
'💗': 'heart-grow.json',
|
||||||
"💓": "beating-heart.json",
|
'💓': 'beating-heart.json',
|
||||||
"💞": "revolving-hearts.json",
|
'💞': 'revolving-hearts.json',
|
||||||
"💕": "two-hearts.json",
|
'💕': 'two-hearts.json',
|
||||||
"💔": "broken-heart.json",
|
'💔': 'broken-heart.json',
|
||||||
"💋": "kiss.json",
|
'💋': 'kiss.json',
|
||||||
"👀": "eyes.json",
|
'👀': 'eyes.json',
|
||||||
"🦻": "hearing-aid.json",
|
'🦻': 'hearing-aid.json',
|
||||||
"🦶": "foot.json",
|
'🦶': 'foot.json',
|
||||||
"🦵": "leg.json",
|
'🦵': 'leg.json',
|
||||||
"🦿": "leg-mechanical.json",
|
'🦿': 'leg-mechanical.json',
|
||||||
"🦾": "arm-mechanical.json",
|
'🦾': 'arm-mechanical.json',
|
||||||
"👏": "clap.json",
|
'👏': 'clap.json',
|
||||||
"👍": "thumbs-up.json",
|
'👍': 'thumbs-up.json',
|
||||||
"👎": "thumbs-down.json",
|
'👎': 'thumbs-down.json',
|
||||||
"🙌": "raising-hands.json",
|
'🙌': 'raising-hands.json',
|
||||||
"🤲": "palms-up.json",
|
'🤲': 'palms-up.json',
|
||||||
"✊": "raised-fist.json",
|
'✊': 'raised-fist.json',
|
||||||
"👊": "fist.json",
|
'👊': 'fist.json',
|
||||||
"👋": "wave.json",
|
'👋': 'wave.json',
|
||||||
"🤘": "metal.json",
|
'🤘': 'metal.json',
|
||||||
"🤞": "crossed-fingers.json",
|
'🤞': 'crossed-fingers.json',
|
||||||
"🤙": "call-me-hand.json",
|
'🤙': 'call-me-hand.json',
|
||||||
"👌": "ok.json",
|
'👌': 'ok.json',
|
||||||
"🖕": "middle-finger.json",
|
'🖕': 'middle-finger.json',
|
||||||
"🤝": "handshake.json",
|
'🤝': 'handshake.json',
|
||||||
"💃": "dancer-woman.json",
|
'💃': 'dancer-woman.json',
|
||||||
"🌱": "plant.json",
|
'🌱': 'plant.json',
|
||||||
"🍃": "leaves.json",
|
'🍃': 'leaves.json',
|
||||||
"🍀": "luck.json",
|
'🍀': 'luck.json',
|
||||||
"🌋": "volcano.json",
|
'🌋': 'volcano.json',
|
||||||
"🌈": "rainbow.json",
|
'🌈': 'rainbow.json',
|
||||||
"🌊": "ocean.json",
|
'🌊': 'ocean.json',
|
||||||
"💧": "droplet.json",
|
'💧': 'droplet.json',
|
||||||
"🦄": "unicorn.json",
|
'🦄': 'unicorn.json',
|
||||||
"🦎": "lizard.json",
|
'🦎': 'lizard.json',
|
||||||
"🦖": "t-rex.json",
|
'🦖': 't-rex.json',
|
||||||
"🦕": "dinosaur.json",
|
'🦕': 'dinosaur.json',
|
||||||
"🐢": "turtle.json",
|
'🐢': 'turtle.json',
|
||||||
"🐊": "crocodile.json",
|
'🐊': 'crocodile.json',
|
||||||
"🐍": "snake.json",
|
'🐍': 'snake.json',
|
||||||
"🐩": "poodle.json",
|
'🐩': 'poodle.json',
|
||||||
"🐕": "dog.json",
|
'🐕': 'dog.json',
|
||||||
"🦮": "guide-dog.json",
|
'🦮': 'guide-dog.json',
|
||||||
"🐖": "pig.json",
|
'🐖': 'pig.json',
|
||||||
"🦘": "kangaroo.json",
|
'🦘': 'kangaroo.json',
|
||||||
"🐅": "tiger.json",
|
'🐅': 'tiger.json',
|
||||||
"🐒": "monkey.json",
|
'🐒': 'monkey.json',
|
||||||
"🦍": "gorilla.json",
|
'🦍': 'gorilla.json',
|
||||||
"🦧": "orangutan.json",
|
'🦧': 'orangutan.json',
|
||||||
"🦦": "otter.json",
|
'🦦': 'otter.json',
|
||||||
"🐓": "rooster.json",
|
'🐓': 'rooster.json',
|
||||||
"🦅": "eagle.json",
|
'🦅': 'eagle.json',
|
||||||
"🦉": "owl.json",
|
'🦉': 'owl.json',
|
||||||
"🦚": "peacock.json",
|
'🦚': 'peacock.json',
|
||||||
"🦭": "seal.json",
|
'🦭': 'seal.json',
|
||||||
"🦈": "shark.json",
|
'🦈': 'shark.json',
|
||||||
"🐬": "dolphin.json",
|
'🐬': 'dolphin.json',
|
||||||
"🐳": "whale.json",
|
'🐳': 'whale.json',
|
||||||
"🐟": "fish.json",
|
'🐟': 'fish.json',
|
||||||
"🐡": "blowfish.json",
|
'🐡': 'blowfish.json',
|
||||||
"🦞": "lobster.json",
|
'🦞': 'lobster.json',
|
||||||
"🦀": "crab.json",
|
'🦀': 'crab.json',
|
||||||
"🐙": "octopus.json",
|
'🐙': 'octopus.json',
|
||||||
"🦂": "scorpion.json",
|
'🦂': 'scorpion.json',
|
||||||
"🐌": "snail.json",
|
'🐌': 'snail.json',
|
||||||
"🐜": "ant.json",
|
'🐜': 'ant.json',
|
||||||
"🪳": "cockroach.json",
|
'🪳': 'cockroach.json',
|
||||||
"🪰": "fly.json",
|
'🪰': 'fly.json',
|
||||||
"🐝": "bee.json",
|
'🐝': 'bee.json',
|
||||||
"🐞": "lady-bug.json",
|
'🐞': 'lady-bug.json',
|
||||||
"🌯": "burrito.json",
|
'🌯': 'burrito.json',
|
||||||
"🍻": "clinking-beer-mugs.json",
|
'🍻': 'clinking-beer-mugs.json',
|
||||||
"🍾": "bottle-with-popping-cork.json",
|
'🍾': 'bottle-with-popping-cork.json',
|
||||||
"🚨": "police-car-light.json",
|
'🚨': 'police-car-light.json',
|
||||||
"🚗": "automobile.json",
|
'🚗': 'automobile.json',
|
||||||
"🚕": "taxi.json",
|
'🚕': 'taxi.json',
|
||||||
"🛸": "flying-saucer.json",
|
'🛸': 'flying-saucer.json',
|
||||||
"🚀": "rocket.json",
|
'🚀': 'rocket.json',
|
||||||
"🛫": "airplane-departure.json",
|
'🛫': 'airplane-departure.json',
|
||||||
"🎢": "roller-coaster.json",
|
'🎢': 'roller-coaster.json',
|
||||||
"🎡": "ferris-wheel.json",
|
'🎡': 'ferris-wheel.json',
|
||||||
"🎈": "balloon.json",
|
'🎈': 'balloon.json',
|
||||||
"🎁": "wrapped-gift.json",
|
'🎁': 'wrapped-gift.json',
|
||||||
"🎆": "fireworks.json",
|
'🎆': 'fireworks.json',
|
||||||
"💸": "money-with-wings.json",
|
'💸': 'money-with-wings.json',
|
||||||
"💎": "gem-stone.json",
|
'💎': 'gem-stone.json',
|
||||||
"🎓": "graduation-cap.json",
|
'🎓': 'graduation-cap.json',
|
||||||
"⏰": "alarm-clock.json",
|
'⏰': 'alarm-clock.json',
|
||||||
"🔔": "bell.json",
|
'🔔': 'bell.json',
|
||||||
"💣": "bomb.json",
|
'💣': 'bomb.json',
|
||||||
"❗": "exclamation.json",
|
'❗': 'exclamation.json',
|
||||||
"❓": "question.json",
|
'❓': 'question.json',
|
||||||
"❌": "cross-mark.json",
|
'❌': 'cross-mark.json',
|
||||||
"🏁": "chequered-flag.json",
|
'🏁': 'chequered-flag.json',
|
||||||
"🚩": "triangular-flag.json",
|
'🚩': 'triangular-flag.json',
|
||||||
"🏴": "black-flag.json",
|
'🏴': 'black-flag.json',
|
||||||
};
|
};
|
||||||
|
|
||||||
static bool supported(String emoji) {
|
static bool supported(String emoji) {
|
||||||
|
|
|
||||||
|
|
@ -295,7 +295,9 @@ class _PlanCardState extends State<PlanCard> {
|
||||||
},
|
},
|
||||||
label: const Text('Manage subscription'),
|
label: const Text('Manage subscription'),
|
||||||
),
|
),
|
||||||
if (widget.onPurchase != null && monthlyProduct != null)
|
if (widget.onPurchase != null &&
|
||||||
|
monthlyProduct != null &&
|
||||||
|
!isPayingUser(currentPlan))
|
||||||
OutlinedButton.icon(
|
OutlinedButton.icon(
|
||||||
onPressed: _isLoading != null
|
onPressed: _isLoading != null
|
||||||
? null
|
? null
|
||||||
|
|
@ -315,8 +317,7 @@ class _PlanCardState extends State<PlanCard> {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
if (widget.onPurchase != null &&
|
if (widget.onPurchase != null &&
|
||||||
(yearlyProduct != null ||
|
(yearlyProduct != null && !isPayingUser(currentPlan)))
|
||||||
currentPlan == SubscriptionPlan.Free))
|
|
||||||
FilledButton.icon(
|
FilledButton.icon(
|
||||||
onPressed: _isLoading != null
|
onPressed: _isLoading != null
|
||||||
? null
|
? null
|
||||||
|
|
@ -331,7 +332,7 @@ class _PlanCardState extends State<PlanCard> {
|
||||||
label: Text(
|
label: Text(
|
||||||
context.lang.upgradeToPaidPlanButton(
|
context.lang.upgradeToPaidPlanButton(
|
||||||
widget.plan.name,
|
widget.plan.name,
|
||||||
' (${getFormattedPrice(yearlyProduct!)}/${context.lang.year})',
|
' (${getFormattedPrice(yearlyProduct)}/${context.lang.year})',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue