From 57f6a549d87fb575610760f4d5c7cbace28dcbd4 Mon Sep 17 00:00:00 2001 From: mytja Date: Sun, 28 Apr 2024 23:33:35 +0200 Subject: [PATCH] previous commit didn't do anything, here is fr (actually) resolves #72 --- tarok/lib/game/game.dart | 5 +++-- tarok/pubspec.lock | 9 +++++---- tarok/pubspec.yaml | 8 ++++---- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/tarok/lib/game/game.dart b/tarok/lib/game/game.dart index 9bb760b..f295f52 100644 --- a/tarok/lib/game/game.dart +++ b/tarok/lib/game/game.dart @@ -243,8 +243,9 @@ class Game extends StatelessWidget { Radius.circular(20)), ), child: Center( - child: Text( - controller.selectedKing.value == + child: TwemojiText( + text: controller + .selectedKing.value == "/pik/kralj" ? "♠️" : (controller.selectedKing diff --git a/tarok/pubspec.lock b/tarok/pubspec.lock index 4418150..2c3b1c3 100644 --- a/tarok/pubspec.lock +++ b/tarok/pubspec.lock @@ -980,10 +980,11 @@ packages: twemoji_v2: dependency: "direct main" description: - name: twemoji_v2 - sha256: e573f62ef26b1261c6a5e027096187a9b49da77d14bdeb54b16a55bd1127d482 - url: "https://pub.dev" - source: hosted + path: "." + ref: main + resolved-ref: "3021e6459a59439f9e6c7cbd7df53fef1e9af511" + url: "https://github.com/mytja/twemoji_v2" + source: git version: "0.5.3" typed_data: dependency: transitive diff --git a/tarok/pubspec.yaml b/tarok/pubspec.yaml index 0f5992c..fbb2deb 100644 --- a/tarok/pubspec.yaml +++ b/tarok/pubspec.yaml @@ -47,7 +47,10 @@ dependencies: omni_datetime_picker: ^1.0.9 fl_chart: ^0.66.0 file_picker: ^4.6.1 - twemoji_v2: ^0.5.3 + twemoji_v2: + git: + url: https://github.com/mytja/twemoji_v2 + ref: main dev_dependencies: flutter_test: @@ -98,9 +101,6 @@ names_launcher: web: enable: true -twemoji_v2: - includes: "🖐️" - flutter: uses-material-design: true assets: