From 84dbb5da1df5484b90596cc934a2e1637e76ea83 Mon Sep 17 00:00:00 2001 From: RuiAlonso Date: Fri, 6 May 2022 19:46:32 +0200 Subject: [PATCH] feat: link underscore --- .../displays/game_over_info_display.dart | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/lib/game/components/backbox/displays/game_over_info_display.dart b/lib/game/components/backbox/displays/game_over_info_display.dart index 7cca58c1..52d9fb08 100644 --- a/lib/game/components/backbox/displays/game_over_info_display.dart +++ b/lib/game/components/backbox/displays/game_over_info_display.dart @@ -40,7 +40,6 @@ final _linkTextPaint = TextPaint( color: PinballColors.orange, fontFamily: PinballFonts.pixeloidSans, fontWeight: FontWeight.bold, - decorationThickness: 1, ), ); @@ -194,6 +193,15 @@ class ShareLinkComponent extends TextComponent with HasGameRef, Tappable { @override Future onLoad() async { await super.onLoad(); + await add( + RectangleComponent( + size: Vector2(6.4, 0.2), + paint: Paint()..color = PinballColors.orange, + anchor: Anchor.center, + position: Vector2(3.2, 2.3), + ), + ); + text = readProvider().share; } } @@ -223,6 +231,15 @@ class GoogleIOLinkComponent extends TextComponent with HasGameRef, Tappable { @override Future onLoad() async { await super.onLoad(); + await add( + RectangleComponent( + size: Vector2(10.2, 0.2), + paint: Paint()..color = PinballColors.orange, + anchor: Anchor.center, + position: Vector2(5.1, 2.3), + ), + ); + text = readProvider().gotoIO; } }