Skip to content

fix: correct fallback asset rendering in LinuxFoundationWidget#453

Closed
adityashirsatrao007 wants to merge 2 commits into
andoriyaprashant:mainfrom
adityashirsatrao007:fix/linux-foundation-fallback-asset
Closed

fix: correct fallback asset rendering in LinuxFoundationWidget#453
adityashirsatrao007 wants to merge 2 commits into
andoriyaprashant:mainfrom
adityashirsatrao007:fix/linux-foundation-fallback-asset

Conversation

@adityashirsatrao007

Copy link
Copy Markdown
Contributor

Problem / Issue No.

Describe Problem / Root Cause

  • In lib/widgets/linux_foundation_widget.dart, when modal.imageUrl is empty, the widget attempts to load a fallback asset from 'assets/logo.png'.
  • However, there is no file named assets/logo.png in the repository, and the widget loads it using SvgPicture.asset even though it is named .png (which would crash at runtime).

Solution proposed

  • Replaced SvgPicture.asset('assets/logo.png') with Image.asset('assets/linux_foundation_logo.png') so the correct PNG asset is loaded and rendered successfully without crashing.

Additional Information

  • Verified that assets/linux_foundation_logo.png exists in the repository.

Copilot AI review requested due to automatic review settings May 30, 2026 10:05
@netlify

netlify Bot commented May 30, 2026

Copy link
Copy Markdown

Deploy Preview for aquamarine-kheer-83feda failed. Why did it fail? →

Name Link
🔨 Latest commit 1e782c6
🔍 Latest deploy log https://app.netlify.com/projects/aquamarine-kheer-83feda/deploys/6a1abc4aaa7d9d0008688467

@github-actions

Copy link
Copy Markdown

Thank you for submitting your pull request! We'll review it as soon as possible.

@adityashirsatrao007 adityashirsatrao007 closed this by deleting the head repository Jun 17, 2026
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.

fix: correct fallback asset rendering in LinuxFoundationWidget

1 participant