mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 07:55:18 +00:00
Username and Icon now flexible
Nested username and icon within a flexible box
This commit is contained in:
parent
c439a526dd
commit
0ae0e196fd
@ -148,7 +148,10 @@ class Sidebar extends HookConsumerWidget {
|
|||||||
child: CircularProgressIndicator(),
|
child: CircularProgressIndicator(),
|
||||||
)
|
)
|
||||||
else if (data != null)
|
else if (data != null)
|
||||||
Row(
|
Flexible(
|
||||||
|
child: Row(
|
||||||
|
mainAxisAlignment:
|
||||||
|
MainAxisAlignment.spaceEvenly,
|
||||||
children: [
|
children: [
|
||||||
CircleAvatar(
|
CircleAvatar(
|
||||||
backgroundImage:
|
backgroundImage:
|
||||||
@ -157,8 +160,7 @@ class Sidebar extends HookConsumerWidget {
|
|||||||
const SizedBox(
|
const SizedBox(
|
||||||
width: 10,
|
width: 10,
|
||||||
),
|
),
|
||||||
SizedBox(
|
Flexible(
|
||||||
width: 120,
|
|
||||||
child: Text(
|
child: Text(
|
||||||
data.displayName ?? "Guest",
|
data.displayName ?? "Guest",
|
||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
@ -171,6 +173,7 @@ class Sidebar extends HookConsumerWidget {
|
|||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
),
|
||||||
IconButton(
|
IconButton(
|
||||||
icon: const Icon(Icons.settings_outlined),
|
icon: const Icon(Icons.settings_outlined),
|
||||||
onPressed: () => goToSettings(context)),
|
onPressed: () => goToSettings(context)),
|
||||||
|
Loading…
Reference in New Issue
Block a user