@@ -148,26 +148,38 @@ 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
- onBackgroundImageError:
157
- (exception, stackTrace) => Container (
158
- height: 16 ,
159
- width: 16 ,
160
- color: Theme .of (context).cardColor,
151
+ Flexible (
152
+ child: Row (
153
+ mainAxisAlignment:
154
+ MainAxisAlignment .spaceEvenly,
155
+ children: [
156
+ CircleAvatar (
157
+ backgroundImage:
158
+ CachedNetworkImageProvider ("asdasd" ),
159
+ onBackgroundImageError:
160
+ (exception, stackTrace) =>
161
+ Image .asset (
162
+ "assets/user-placeholder.png" ,
163
+ height: 16 ,
164
+ width: 16 ,
165
+ ),
161
166
),
162
- ),
163
- const SizedBox (width: 10 ),
164
- Text (
165
- data.displayName ?? "Guest" ,
166
- style: const TextStyle (
167
- fontWeight: FontWeight .bold,
167
+ const SizedBox (
168
+ width: 10 ,
168
169
),
169
- ),
170
- ],
170
+ Flexible (
171
+ child: Text (
172
+ data.displayName ?? "Guest" ,
173
+ maxLines: 1 ,
174
+ softWrap: false ,
175
+ overflow: TextOverflow .fade,
176
+ style: const TextStyle (
177
+ fontWeight: FontWeight .bold,
178
+ ),
179
+ ),
180
+ ),
181
+ ],
182
+ ),
171
183
),
172
184
IconButton (
173
185
icon: const Icon (Icons .settings_outlined),
@@ -183,10 +195,10 @@ class Sidebar extends HookConsumerWidget {
183
195
backgroundImage:
184
196
CachedNetworkImageProvider (avatarImg),
185
197
onBackgroundImageError: (exception, stackTrace) =>
186
- Container (
198
+ Image .asset (
199
+ "assets/user-placeholder.png" ,
187
200
height: 16 ,
188
201
width: 16 ,
189
- color: Theme .of (context).cardColor,
190
202
),
191
203
),
192
204
),
0 commit comments