Skip to content

Commit cc6be39

Browse files
committed
feat: add an icon on the left side of the user bio
1 parent 6e8873b commit cc6be39

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/components/cards/user_info_card.dart

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,11 @@ class UserInfoCard extends StatelessWidget {
205205
),
206206
Padding(
207207
padding: const EdgeInsets.only(left: 20, top: 4),
208-
child: Text((data.bio?.isEmpty ?? true) ? '这个人很懒,什么都没写' : data.bio!),
208+
child: Row(crossAxisAlignment: CrossAxisAlignment.start, children: [
209+
Icon(Icons.sell),
210+
const SizedBox(width: 5.0),
211+
Text((data.bio?.isEmpty ?? true) ? '这个人很懒,什么都没写' : data.bio!),
212+
]),
209213
),
210214
Padding(
211215
padding: const EdgeInsets.only(left: 20, top: 4),

0 commit comments

Comments
 (0)