Skip to content

Commit

Permalink
Replace network image with asset
Browse files Browse the repository at this point in the history
  • Loading branch information
thecodepapaya committed Jul 7, 2023
1 parent 074b1a1 commit 1601021
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
Binary file added assets/human.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/redbus.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 2 additions & 8 deletions lib/presentation/amount/view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,20 +39,14 @@ class AmountPage extends StatelessWidget {
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: const [
_Avatar(
url:
'https://img.freepik.com/free-photo/human-face-expressions-emotions-positive-joyful-young-beautiful-female-with-fair-straight-hair-casual-clothing_176420-15188.jpg?w=100',
),
_Avatar(url: 'assets/human.jpeg'),
SizedBox(width: 3),
Icon(
Icons.chevron_right,
color: Colors.white,
),
SizedBox(width: 3),
_Avatar(
url:
'https://play-lh.googleusercontent.com/pOhc9TAENgN1MXuU42s6tiT7KCJ-PSl7zoSH9r_AfIx-rkfIOHNvJHanJPw-HBa09w',
),
_Avatar(url: 'assets/redbus.jpeg'),
],
),
const SizedBox(height: 12),
Expand Down
2 changes: 1 addition & 1 deletion lib/presentation/amount/widgets/avatar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class _Avatar extends StatelessWidget {
@override
Widget build(BuildContext context) {
return CircleAvatar(
backgroundImage: NetworkImage(url),
backgroundImage: AssetImage(url),
radius: 35,
);
}
Expand Down

0 comments on commit 1601021

Please sign in to comment.