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

[flutter_svg] Adding an error widget #158612

Open
stuartmorgan opened this issue Nov 13, 2024 · 0 comments · May be fixed by flutter/packages#8364
Open

[flutter_svg] Adding an error widget #158612

stuartmorgan opened this issue Nov 13, 2024 · 0 comments · May be fixed by flutter/packages#8364
Labels
p: flutter_svg The Flutter SVG drawing packages package flutter/packages repository. See also p: labels.

Comments

@stuartmorgan
Copy link
Contributor

Imported from dnfield/flutter_svg#250

Original report by @PoloLacoste on Nov 15, 2019

Hi !
I think it could be interesting to include an error widget when an error happens. For example a network connection error or a parse error.

Like the example below:

final String assetName = "myAsset.svg";
SvgPicture.asset(
	assetName,
	errorBuilder: (context, error){
		return MyErrorWidget();
	}
)

The error variable, in the error builder, could be an exception or a message.


Comment by @dnfield on Jan 19, 2020
I'd be happy to review a PR that does this.


Comment by @PoloLacoste on Jan 19, 2020
#277 Here it is !

@stuartmorgan stuartmorgan added p: flutter_svg The Flutter SVG drawing packages package flutter/packages repository. See also p: labels. labels Nov 13, 2024
@memishood memishood linked a pull request Jan 2, 2025 that will close this issue
11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p: flutter_svg The Flutter SVG drawing packages package flutter/packages repository. See also p: labels.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant