From 032f2cc5d9ca10938573fec8eab0d06a7de123e0 Mon Sep 17 00:00:00 2001 From: d-reader-luka Date: Fri, 14 Jun 2024 11:45:54 +0200 Subject: [PATCH] after mint fixes --- .../widgets/tabs/about/mint_info_container.dart | 8 ++++---- .../widgets/cards/owned_digital_asset_card.dart | 2 ++ .../presentation/widgets/cards/owned_issue_card.dart | 2 ++ 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/features/comic_issue/presentation/widgets/tabs/about/mint_info_container.dart b/lib/features/comic_issue/presentation/widgets/tabs/about/mint_info_container.dart index 4aef6264..44868ed4 100644 --- a/lib/features/comic_issue/presentation/widgets/tabs/about/mint_info_container.dart +++ b/lib/features/comic_issue/presentation/widgets/tabs/about/mint_info_container.dart @@ -54,7 +54,7 @@ class MintInfoContainer extends ConsumerStatefulWidget { class _MintInfoContainerState extends ConsumerState with SingleTickerProviderStateMixin { - late final Ticker _ticker; + Ticker? _ticker; @override void initState() { @@ -80,16 +80,16 @@ class _MintInfoContainerState extends ConsumerState Formatter.formatDateInRelative(candyMachineGroup.startDate), ); if (isActive) { - _ticker.stop(); + _ticker?.stop(); } }, ); - _ticker.start(); + _ticker?.start(); } @override void dispose() { - _ticker.dispose(); + _ticker?.dispose(); super.dispose(); } diff --git a/lib/features/library/presentation/widgets/cards/owned_digital_asset_card.dart b/lib/features/library/presentation/widgets/cards/owned_digital_asset_card.dart index 0eee42b1..eaf77d0f 100644 --- a/lib/features/library/presentation/widgets/cards/owned_digital_asset_card.dart +++ b/lib/features/library/presentation/widgets/cards/owned_digital_asset_card.dart @@ -71,6 +71,8 @@ class OwnedDigitalAssetCard extends ConsumerWidget { ), Text( ref.watch(selectedIssueInfoProvider)?.title ?? '', + maxLines: 1, + overflow: TextOverflow.ellipsis, style: const TextStyle( fontSize: 16, fontWeight: FontWeight.w700, diff --git a/lib/features/library/presentation/widgets/cards/owned_issue_card.dart b/lib/features/library/presentation/widgets/cards/owned_issue_card.dart index f146055d..0cd52509 100644 --- a/lib/features/library/presentation/widgets/cards/owned_issue_card.dart +++ b/lib/features/library/presentation/widgets/cards/owned_issue_card.dart @@ -67,6 +67,8 @@ class OwnedIssueCard extends ConsumerWidget { ), Text( issue.title, + maxLines: 1, + overflow: TextOverflow.ellipsis, style: const TextStyle( fontSize: 16, fontWeight: FontWeight.w700,