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(), 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)),