mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 16:05:18 +00:00
Merge pull request #190 from Demizo/fix_username_overflow
[FIX] Fade Long Usernames on Sidebar
This commit is contained in:
commit
3b24018bba
@ -148,20 +148,31 @@ class Sidebar extends HookConsumerWidget {
|
|||||||
child: CircularProgressIndicator(),
|
child: CircularProgressIndicator(),
|
||||||
)
|
)
|
||||||
else if (data != null)
|
else if (data != null)
|
||||||
Row(
|
Flexible(
|
||||||
children: [
|
child: Row(
|
||||||
CircleAvatar(
|
mainAxisAlignment:
|
||||||
backgroundImage:
|
MainAxisAlignment.spaceEvenly,
|
||||||
CachedNetworkImageProvider(avatarImg),
|
children: [
|
||||||
),
|
CircleAvatar(
|
||||||
const SizedBox(width: 10),
|
backgroundImage:
|
||||||
Text(
|
CachedNetworkImageProvider(avatarImg),
|
||||||
data.displayName ?? "Guest",
|
|
||||||
style: const TextStyle(
|
|
||||||
fontWeight: FontWeight.bold,
|
|
||||||
),
|
),
|
||||||
),
|
const SizedBox(
|
||||||
],
|
width: 10,
|
||||||
|
),
|
||||||
|
Flexible(
|
||||||
|
child: Text(
|
||||||
|
data.displayName ?? "Guest",
|
||||||
|
maxLines: 1,
|
||||||
|
softWrap: false,
|
||||||
|
overflow: TextOverflow.fade,
|
||||||
|
style: const TextStyle(
|
||||||
|
fontWeight: FontWeight.bold,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
),
|
),
|
||||||
IconButton(
|
IconButton(
|
||||||
icon: const Icon(Icons.settings_outlined),
|
icon: const Icon(Icons.settings_outlined),
|
||||||
|
Loading…
Reference in New Issue
Block a user