windows 10 pro office 2019 pro office 365 pro windows 10 home windows 10 enterprise office 2019 home and business office 2016 pro windows 10 education visio 2019 microsoft project 2019 microsoft project 2016 visio professional 2016 windows server 2012 windows server 2016 windows server 2019 Betriebssysteme office software windows server https://softhier.com/ instagram takipçi instagram beğeni instagram görüntüleme instagram otomatik beğeni facebook beğeni facebook sayfa beğenisi facebook takipçi twitter takipçi twitter beğeni twitter retweet youtube izlenme youtube abone instagram

Flutter: show asset gif in alert dialog

Asked By: Anonymous

I am trying to show this gif asset in my alert dialog, but get an error:

Another exception was thrown: Unable to load asset: assets/tutorial/lip.gif

But .png images work fine.

Here is my code for the alert dialog:

...
AlertDialog(
        title: Text('Showing Lip'),
        content: Container(
          child: Image.asset(
            'assets/tutorial/lip.gif',
            height: 125.0,
            width: 125.0,
          ),
        ),
...

Any help is appreciated!


Solution

Answered By: Anonymous

you are using the right method to display a GIF.

Your problem is probably that the path for the file you trying to display isn’t right.

Did you add this file in your pubspec.yaml file?
Here’s the official documentation on how to add an asset to your Flutter project

techinplanet staff


Windows 10 Kaufen Windows 10 Pro Office 2019 Kaufen Office 365 Lizenz Windows 10 Home Lizenz Office 2019 Home Business Kaufen windows office 365 satın al follower kaufen instagram follower kaufen porno