Username and Icon now flexible

Nested username and icon within a flexible box
This commit is contained in:
Demizo 2022-09-01 23:37:14 -05:00
parent c439a526dd
commit 0ae0e196fd

View File

@ -148,7 +148,10 @@ class Sidebar extends HookConsumerWidget {
child: CircularProgressIndicator(),
)
else if (data != null)
Row(
Flexible(
child: Row(
mainAxisAlignment:
MainAxisAlignment.spaceEvenly,
children: [
CircleAvatar(
backgroundImage:
@ -157,8 +160,7 @@ class Sidebar extends HookConsumerWidget {
const SizedBox(
width: 10,
),
SizedBox(
width: 120,
Flexible(
child: Text(
data.displayName ?? "Guest",
maxLines: 1,
@ -171,6 +173,7 @@ class Sidebar extends HookConsumerWidget {
),
],
),
),
IconButton(
icon: const Icon(Icons.settings_outlined),
onPressed: () => goToSettings(context)),