twemoji
適用於 Flutter 的 Twitter 表情符號,此套件支援 svg 與 png 72x72 表情符號
- 星標
- 14
- 分支
- 14
- 最近推送(UTC)
- 2024年6月17日
- 專案狀態
- 未封存
原始 README
以下為英文專案原文快照,最新內容請造訪 GitHub。
twemoji
Twitter Emojis for Flutter, this package supports svg and png 72x72 emojis
Usage
Twemoji widget for a single emoji
Twemoji(
emoji: '🍕',
height: 50,
width: 50,
)
TwemojiText returns a widget with rendered text with twitter emojis
TwemojiText(
text: 'wow 💻👩💻👨💻 ',
),
TwemojiTextSpan with RichText and it will render the text with twitter Emojies
RichText(
text: TwemojiTextSpan(
text: 'Text 🍕🍔🌭🍿🧂🥓🥨🥐🍞🥞🥞',
style: Theme.of(context).textTheme.headline6,
),
)
Including specific emojis
By default the library includes support for all emojis. To reduce bundle size and only build the emojis your application requires, specify a list of them in your pubspec.yaml:
twemoji:
includes: '👩👩👧👧👏👍'
Then call flutter pub run twemoji:include_emojis to have it filter down the list of emojis to generate assets for.
Screenshot
TODO
- [x] Add SVG support
- [x] Find a way to get an emoji code. For example: 😀 => "1F600"
- [ ] Extend Textfield widget to support twemoji
About twemoji: https://twemoji.twitter.com/
分類
使用的依賴
依賴清單 7 項
- characters
^1.1.0 - flutter
{"sdk":"flutter"} - flutter_svg
^1.0.0 - io
^1.0.3 - path
^1.8.0 - yaml
^3.1.0 - flutter_test開發依賴
{"sdk":"flutter"}
如何選擇適合專案的儲存庫?
先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。
- 透過儲存庫名稱、作者或描述搜尋,再依技術分類縮小範圍。
- 綜合星標、分支與最近推送比較專案;星標反映社群關注,不保證品質。
- 使用前在 GitHub 確認 README、授權條款與 Issues。
來源與維護
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗