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

It works with your given nine patch assets but does not work with my nine patch image. #3

Open
AhmadIzaz opened this issue May 30, 2024 · 1 comment

Comments

@AhmadIzaz
Copy link

AhmadIzaz commented May 30, 2024

This is the code I am trying out
NinePatchImage( hideLines: true, imageProvider: AssetImage(Assets.images.crm2.myasset9.path), child: Text(e.text.toString()))

When I am doing with your asset image the 'bubble_blue.9.png' it somehow works but with blurred corners but atleast I can see it.
Now when I try with my .9.png asset. my assets wont even be visisble when I run the same code.
Below is my asset

primary-button 9

@AhmadIzaz AhmadIzaz changed the title It works with your nine patch assets but does not work with my nine patch image. It works with your given nine patch assets but does not work with my nine patch image. May 30, 2024
@AhmadIzaz
Copy link
Author

and this comes in the logs as well

════════ Exception caught by rendering library ═════════════════════════════════
centerSlice was used with a BoxFit that does not guarantee that the image is fully visible.
'package:flutter/src/painting/decoration_image.dart':
Failed assertion: line 552 pos 12: 'sourceSize == inputSize'
The relevant error-causing widget was:

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

No branches or pull requests

1 participant