-
Notifications
You must be signed in to change notification settings - Fork 27.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Emoji Keycap Sequence not supported on iOS #36062
Comments
In the mean time, a possible workaround is to simply remove the box artifacts by stripping the variation selector final keycapRegex =
RegExp(r'((\u0023|\u002a|[\u0030-\u0039])\ufe0f\u20e3){1}');
var result = 'String with possible keycap emojis'
.replaceAllMapped(keycapRegex, (match) => match[2]); |
Reproducible on the latest master flutter doctor -v
|
Any progress on this? we are still experiencing this on Flutter stable 2.8.1 on iOS devices |
I hit this today myself. While looking, I also noticed that |
@fredriks this workaround fixed it for me: #49627 (comment) |
Reproduces on the latest versions of flutter updated sampleimport 'package:flutter/material.dart';
const _emojiKeycapSequence = [
'\u0023\ufe0f\u20e3', // keycap: #
'\u002a\ufe0f\u20e3', // keycap: *
'\u0030\ufe0f\u20e3', // keycap: 0
'\u0031\ufe0f\u20e3', // keycap: 1
'\u0032\ufe0f\u20e3', // keycap: 2
'\u0033\ufe0f\u20e3', // keycap: 3
'\u0034\ufe0f\u20e3', // keycap: 4
'\u0035\ufe0f\u20e3', // keycap: 5
'\u0036\ufe0f\u20e3', // keycap: 6
'\u0037\ufe0f\u20e3', // keycap: 7
'\u0038\ufe0f\u20e3', // keycap: 8
'\u0039\ufe0f\u20e3', // keycap: 9
];
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) => MaterialApp(
title: 'Flutter Demo',
home: Scaffold(
body: Center(
child: Text(
_emojiKeycapSequence.join(' '),
style: const TextStyle(fontSize: 20),
),
),
),
);
} flutter doctor -v
|
I am trying to fix this issue by modifying the skia code in this issue google/skia#129 . This may take some time and discussion for that PR.
comparison: iPhone11 ,iOS 16.3.1
|
It's been a week since submitting the pr. Could you help communicate with Google colleagues about the progress? If there is a need to modify something, I am happy to modify it !! 😃 @chinmaygarde |
@xiaoxiaowesley I have no inside knowledge, but a couple of suggestions that may be helpful:
|
Thank you so much for your reply and advice! This works for me. I'm going to do something to push this forward as you said. |
has any update? |
same issue with flutter 3.7.10 |
|
same issue with flutter 3.22.0 |
The Emoji Sequence Data for UTS #51 has a section for Keycap sequence which specifies emoji alternatives for #, *, 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9. These are available on the iOS keyboard.
They are all rendered properly as emojis on Android but not on iOS. Instead displaying the leading symbol followed by a box artifact (see screenshots).
Android
iOS
Sample code
flutter doctor
The text was updated successfully, but these errors were encountered: