Skip to content

Commit

Permalink
feat(app): set height and quality of tutorial images
Browse files Browse the repository at this point in the history
  • Loading branch information
tamslo committed Feb 28, 2025
1 parent 0239ac4 commit 878e01d
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions app/lib/common/widgets/tutorial/tutorial_builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,16 @@ class TutorialBuilder extends HookWidget {
Widget getImageAsset(String assetPath) {
return Container(
color: PharMeTheme.onSurfaceColor,
child: Padding(
padding: EdgeInsets.symmetric(horizontal: PharMeTheme.largeSpace),
child: Image.asset(assetPath),
child: Center(
child: Image.asset(
assetPath,
// Set size because directly after rendering the asset might not be
// loaded already, which will not render the arrow down indicator
// in ScrollableStackWithIndicator
height: 550,
isAntiAlias: true,
filterQuality: FilterQuality.high,
),
),
);
}
Expand Down

0 comments on commit 878e01d

Please sign in to comment.