File tree 1 file changed +24
-13
lines changed
1 file changed +24
-13
lines changed Original file line number Diff line number Diff line change @@ -148,20 +148,31 @@ class Sidebar extends HookConsumerWidget {
148
148
child: CircularProgressIndicator (),
149
149
)
150
150
else if (data != null )
151
- Row (
152
- children: [
153
- CircleAvatar (
154
- backgroundImage:
155
- CachedNetworkImageProvider (avatarImg),
156
- ),
157
- const SizedBox (width: 10 ),
158
- Text (
159
- data.displayName ?? "Guest" ,
160
- style: const TextStyle (
161
- fontWeight: FontWeight .bold,
151
+ Flexible (
152
+ child: Row (
153
+ mainAxisAlignment:
154
+ MainAxisAlignment .spaceEvenly,
155
+ children: [
156
+ CircleAvatar (
157
+ backgroundImage:
158
+ CachedNetworkImageProvider (avatarImg),
162
159
),
163
- ),
164
- ],
160
+ const SizedBox (
161
+ width: 10 ,
162
+ ),
163
+ Flexible (
164
+ child: Text (
165
+ data.displayName ?? "Guest" ,
166
+ maxLines: 1 ,
167
+ softWrap: false ,
168
+ overflow: TextOverflow .fade,
169
+ style: const TextStyle (
170
+ fontWeight: FontWeight .bold,
171
+ ),
172
+ ),
173
+ ),
174
+ ],
175
+ ),
165
176
),
166
177
IconButton (
167
178
icon: const Icon (Icons .settings_outlined),
You can’t perform that action at this time.
0 commit comments