-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
Not able display asset image from project #5
Comments
@parteekpassi thanks for let me know about this issue. Now I have fixed the issue and package |
@TheAlphamerc Thanks for fixing it. I have one more question is there any way that I can reduce the size of the image being displayed on this widget, Currently It occupies the whole screen with background circle. But I wanted to show small image size in the center of the screen not on the full screen, which looks weird. IS there a way I can control Image size and background circle. |
You can wrap the EmptyWidget in Container(
alignment: Alignment.center,
width:300,
height:300,
child: EmptyWidget(
image: null,
packageImage: PackageImage.Image_1,
title: 'No Notification',
subTitle: 'No notification available yet',
titleTextStyle: TextStyle(
fontSize: 22,
color: Color(0xff9da9c7),
fontWeight: FontWeight.w500,
),
subtitleTextStyle: TextStyle(
fontSize: 14,
color: Color(0xffabb8d6),
),
),
),
) |
Thankyou |
@parteekpassi Yes, It can be possible. I'll implement this in new version of package. |
✨ Add property to hide background ball animation. Ref-> #5 (comment)
@parteekpassi I have added a |
Thank You for making a change and for a quick response, I really appreciate it. |
@parteekpassi The image have its own animation, which allows it to be remain in linear periodic motion. |
✨ Add property to hide background ball animation. Ref-> TheAlphamerc/empty_widget#5 (comment)
I am trying to use this (EmptyWidget) package in my application to display widget with text and image, when there is no data available to display to the user.
I am using the following code, I do not want to use packageImage but instead i want to use asset image from my project.
I have also noticed if i don't use packageImage parameter or set it to null,
I get Error: Null check operator used on a null value.
EmptyWidget(
image: 'images/test.jpg',
packageImage: PackageImage.Image_3,
title: 'No Data Found',
);
Even if I specify my image path using image attribute, It doesn't display image at all and I can't ignore packageImage attribute. I don't know if its a bug , it seems like that it is mandatory to use packageImage attribute and use available images from it.
Could you please specify how could I use custom image from project and in some cases if i don't need to display image but text only, how could i do it.
Thanks,
The text was updated successfully, but these errors were encountered: