Skip to content

Commit

Permalink
png -> webp
Browse files Browse the repository at this point in the history
  • Loading branch information
= committed Dec 1, 2024
1 parent 56d10b0 commit 04cc0c4
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 12 deletions.
Binary file added assets/android-studio.webp
Binary file not shown.
Binary file added assets/avatar.webp
Binary file not shown.
Binary file added assets/cloud.webp
Binary file not shown.
Binary file added assets/firebase.webp
Binary file not shown.
Binary file added assets/flutter.webp
Binary file not shown.
Binary file added assets/flutterflow.webp
Binary file not shown.
Binary file added assets/github.webp
Binary file not shown.
Binary file added assets/goodbye.png
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/xcode.webp
Binary file not shown.
25 changes: 13 additions & 12 deletions lib/Pages/home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,36 +17,38 @@ class _HomePageState extends State<HomePage>
late AnimationController _controller;
final List<Widget> _revolvingImages = [
Image.asset(
"assets/firebase.png", // Replace with small image asset
"assets/firebase.webp", // Replace with small image asset
width: 50,
height: 50,
),
Image.asset(
"assets/flutter-logo.png", // Replace with small image asset
"assets/flutter.webp", // Replace with small image asset
width: 40,
height: 40,
),
Image.asset("assets/flutterflow.png", // Replace with small image asset
Image.asset("assets/flutterflow.webp", // Replace with small image asset
width: 50,
height: 50,
fit: BoxFit.cover),
Image.asset("assets/xcode.png", // Replace with small image asset
Image.asset("assets/xcode.webp", // Replace with small image asset
width: 60,
height: 60,
fit: BoxFit.cover),
Image.asset(
"assets/github.png", // Replace with small image asset
"assets/github.webp", // Replace with small image asset
width: 35,
height: 35,
),
Image.asset("assets/cloud.png", // Replace with small image asset
width: 50,
height: 50,
fit: BoxFit.cover),
Image.asset("assets/android-studio.png", // Replace with small image asset
Image.asset("assets/cloud.webp", // Replace with small image asset
width: 50,
height: 50,
fit: BoxFit.cover),
Image.asset(
"assets/android-studio.webp", // Replace with small image asset
width: 50,
height: 50,
fit: BoxFit.cover,
),
];

@override
Expand Down Expand Up @@ -94,7 +96,6 @@ class _HomePageState extends State<HomePage>
),
),
_workWithMeRichText(context),
Image.asset("assets/hi.png"),
],
),
),
Expand Down Expand Up @@ -376,7 +377,7 @@ class _HomePageState extends State<HomePage>
);
}),
Image.asset(
"assets/avatar.png",
"assets/avatar.webp",
width: avatarSize,
height: avatarSize,
fit: BoxFit.contain,
Expand Down
8 changes: 8 additions & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,14 @@ flutter:
- assets/github.png
- assets/xcode.png
- assets/android-studio.png
- assets/avatar.webp
- assets/firebase.webp
- assets/flutter.webp
- assets/cloud.webp
- assets/flutterflow.webp
- assets/github.webp
- assets/xcode.webp
- assets/android-studio.webp

# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/assets-and-images/#resolution-aware
Expand Down

0 comments on commit 04cc0c4

Please sign in to comment.