Skip to content

Commit bc24124

Browse files
committed
User picture as asset
1 parent b2ebe40 commit bc24124

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

assets/user.png

5.06 KB
Loading

lib/pages/user_profile/UserProfile.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ class _UserProfileState extends PageState<UserProfile> {
5252
BlankPadding(),
5353
CircleAvatar(
5454
backgroundColor: Colors.lightBlue.shade100,
55-
backgroundImage: NetworkImage(
56-
'https://aux2.iconspalace.com/uploads/manager-icon-256.png'),
55+
backgroundImage: Image.asset("assets/user.png").image,
5756
radius: 32,
5857
),
5958
BlankPadding(),

pubspec.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ flutter:
3838
- assets/fireworks.png
3939
- assets/baby.png
4040
- assets/contact.png
41+
- assets/user.png
4142

4243
# Run 'flutter pub run flutter_launcher_icons:main'
4344
flutter_icons:

0 commit comments

Comments
 (0)