Skip to content

Commit

Permalink
Merge pull request #1617 from get10101/chore/replace-images
Browse files Browse the repository at this point in the history
chore: Replace carousel images
  • Loading branch information
holzeis authored Nov 21, 2023
2 parents bbba0d8 + d205157 commit 5663faf
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]

- Fix missing context when opening alert dialog
- Fix jagged border on carousel images

## [1.6.0] - 2023-11-20

Expand Down
Binary file added mobile/assets/carousel_1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed mobile/assets/carousel_1.png
Binary file not shown.
Binary file added mobile/assets/carousel_2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed mobile/assets/carousel_2.png
Binary file not shown.
Binary file added mobile/assets/carousel_3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed mobile/assets/carousel_3.png
Binary file not shown.
Binary file added mobile/assets/carousel_4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed mobile/assets/carousel_4.png
Binary file not shown.
31 changes: 23 additions & 8 deletions mobile/lib/features/welcome/onboarding.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,41 @@ class CarouselItem {
final String title;
final String description;
final String imagePath;
final double aspectRatio;

CarouselItem(this.title, this.description, this.imagePath);
CarouselItem(this.title, this.description, this.imagePath, this.aspectRatio);
}

final List<CarouselItem> carouselItems = [
CarouselItem("Your keys, your control", "Stay in control of your funds at all time.",
"assets/carousel_1.png"),
"assets/carousel_1.jpg", 30 / 35),
CarouselItem("Bitcoin only & Lightning fast.",
"The highest level of security, at lightning speed.", "assets/carousel_2.png"),
CarouselItem("Perpetual futures trading.",
"Experience P2P leveraged trading with no counterparty risk.", "assets/carousel_3.png"),
CarouselItem("Hedging and synthetics",
"You can now send, receive and hold USDP natively on Lightning.", "assets/carousel_4.png"),
"The highest level of security, at lightning speed.", "assets/carousel_2.jpg", 30 / 38),
CarouselItem(
"Perpetual futures trading.",
"Experience P2P leveraged trading with no counterparty risk.",
"assets/carousel_3.jpg",
30 / 35),
CarouselItem(
"Hedging and synthetics",
"You can now send, receive and hold USDP natively on Lightning.",
"assets/carousel_4.jpg",
30 / 28),
];

Widget carouselItemWidget(BuildContext context, CarouselItem item) {
final baseHeight = MediaQuery.of(context).size.height * 0.45;
final baseWidth = MediaQuery.of(context).size.width * 0.10;
return Stack(children: [
Image.asset(item.imagePath),
AspectRatio(
aspectRatio: item.aspectRatio,
child: Container(
decoration: BoxDecoration(
image: DecorationImage(
fit: BoxFit.fitWidth,
alignment: FractionalOffset.center,
image: AssetImage(item.imagePath),
)))),
Padding(
padding: EdgeInsets.only(left: baseWidth, right: baseWidth, top: baseHeight),
child: Text(
Expand Down

0 comments on commit 5663faf

Please sign in to comment.