Skip to content

Commit 384e140

Browse files
committed
temp fix text overflow on desktop
1 parent eb200ee commit 384e140

1 file changed

Lines changed: 27 additions & 26 deletions

File tree

lib/widgets/wallet_info_row/wallet_info_row.dart

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -67,37 +67,38 @@ class WalletInfoRow extends ConsumerWidget {
6767
const SizedBox(width: 12),
6868
contract != null
6969
? Row(
70-
children: [
71-
Text(
72-
contract.name,
73-
style: STextStyles.desktopTextExtraSmall(
74-
context,
75-
).copyWith(
76-
color:
77-
Theme.of(
70+
children: [
71+
Text(
72+
contract.name,
73+
style:
74+
STextStyles.desktopTextExtraSmall(
7875
context,
79-
).extension<StackColors>()!.textDark,
76+
).copyWith(
77+
color: Theme.of(
78+
context,
79+
).extension<StackColors>()!.textDark,
80+
),
8081
),
81-
),
82-
const SizedBox(width: 4),
83-
CoinTickerTag(
84-
ticker: ref.watch(
85-
pWalletCoin(walletId).select((s) => s.ticker),
82+
const SizedBox(width: 4),
83+
CoinTickerTag(
84+
ticker: ref.watch(
85+
pWalletCoin(walletId).select((s) => s.ticker),
86+
),
8687
),
88+
],
89+
)
90+
: Expanded(
91+
child: Text(
92+
wallet.info.name,
93+
overflow: TextOverflow.ellipsis,
94+
style: STextStyles.desktopTextExtraSmall(context)
95+
.copyWith(
96+
color: Theme.of(
97+
context,
98+
).extension<StackColors>()!.textDark,
99+
),
87100
),
88-
],
89-
)
90-
: Text(
91-
wallet.info.name,
92-
style: STextStyles.desktopTextExtraSmall(
93-
context,
94-
).copyWith(
95-
color:
96-
Theme.of(
97-
context,
98-
).extension<StackColors>()!.textDark,
99101
),
100-
),
101102
],
102103
),
103104
),

0 commit comments

Comments
 (0)