Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement backgroundImage for PageViewModel #214

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ArtemNVK
Copy link

@ArtemNVK ArtemNVK commented Apr 20, 2024

Fixes #105.

Implements an ability to use background image in PageViewModel:

  • added an optional backgroundImage parameter for PageViewModel which expects a String path to an asset.
  • fullscreen image logic like in the Example app was moved to IntroPage: backgroundImage is being passed to Image.asset with infinite width and height (which makes the image span all over across the screen).
  • added an assert to PageViewModel that checks if the passed backgroundImage is a valid asset path.
  • updated README.

backgroundImage can be used alone or together with image (to which fullscreen still can be applied).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Background for PageViewModel
1 participant