mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-12 23:45:18 +00:00
Merge branch 'master' of github.com:KRTirtho/spotube
This commit is contained in:
commit
663b08f428
BIN
assets/user-placeholder.png
Normal file
BIN
assets/user-placeholder.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 47 KiB |
@ -148,26 +148,38 @@ 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: [
|
||||||
onBackgroundImageError:
|
CircleAvatar(
|
||||||
(exception, stackTrace) => Container(
|
backgroundImage:
|
||||||
height: 16,
|
CachedNetworkImageProvider("asdasd"),
|
||||||
width: 16,
|
onBackgroundImageError:
|
||||||
color: Theme.of(context).cardColor,
|
(exception, stackTrace) =>
|
||||||
|
Image.asset(
|
||||||
|
"assets/user-placeholder.png",
|
||||||
|
height: 16,
|
||||||
|
width: 16,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
const SizedBox(
|
||||||
const SizedBox(width: 10),
|
width: 10,
|
||||||
Text(
|
|
||||||
data.displayName ?? "Guest",
|
|
||||||
style: const TextStyle(
|
|
||||||
fontWeight: FontWeight.bold,
|
|
||||||
),
|
),
|
||||||
),
|
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),
|
||||||
@ -183,10 +195,10 @@ class Sidebar extends HookConsumerWidget {
|
|||||||
backgroundImage:
|
backgroundImage:
|
||||||
CachedNetworkImageProvider(avatarImg),
|
CachedNetworkImageProvider(avatarImg),
|
||||||
onBackgroundImageError: (exception, stackTrace) =>
|
onBackgroundImageError: (exception, stackTrace) =>
|
||||||
Container(
|
Image.asset(
|
||||||
|
"assets/user-placeholder.png",
|
||||||
height: 16,
|
height: 16,
|
||||||
width: 16,
|
width: 16,
|
||||||
color: Theme.of(context).cardColor,
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
Loading…
Reference in New Issue
Block a user