Skip to content

Conversation

@remax21
Copy link

@remax21 remax21 commented Jan 6, 2026

What

Adds a new backgroundImageWidget property to PageViewModel that accepts any widget as a background image.

Why

The existing backgroundImage parameter uses hardcoded values for BoxFit, width, height, and alignment. This new property gives full control over image properties.

Usage

PageViewModel(
  backgroundImageWidget: Image.asset(
    'assets/background.jpg',
    fit: BoxFit.contain,
    width: 300,
    alignment: Alignment.topCenter,
  ),
  // ...
)

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.

1 participant