Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
758a35c0a6 |
|||
|
acf036cc11 |
3 changed files with 15 additions and 23481 deletions
23480
assets/emoji.json
23480
assets/emoji.json
File diff suppressed because one or more lines are too long
|
|
@ -155,7 +155,7 @@ final class const EmojiPicker({
|
|||
),
|
||||
itemCount: emojis.length,
|
||||
shrinkWrap: true,
|
||||
physics: NeverScrollableScrollPhysics(),
|
||||
controller: scrollController,
|
||||
itemBuilder: (context, index) {
|
||||
final emoji = emojis[index];
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import "dart:convert";
|
||||
import "dart:io";
|
||||
|
||||
import "package:http/http.dart";
|
||||
|
|
@ -13,8 +14,19 @@ void main(List<String> args) async {
|
|||
throw Exception("Failed to load emoji data");
|
||||
}
|
||||
|
||||
print("Fetched emoji data. Minifying...");
|
||||
final jsonValue = json.decode(response.body);
|
||||
|
||||
for (final item in jsonValue) {
|
||||
if (item is Map<String, dynamic>) {
|
||||
item
|
||||
..remove('unicode_version')
|
||||
..remove('ios_version');
|
||||
}
|
||||
}
|
||||
|
||||
await File.fromUri(Platform.script.resolve("../assets/emoji.json"))
|
||||
.writeAsString(response.body);
|
||||
.writeAsString(json.encode(jsonValue));
|
||||
|
||||
print("Emoji list written!");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue