Flutter image preload

Use the precacheImage function to start loading an image before your drawer is built. For example, in the widget that contains your drawer:

class MyWidgetState extends State<MyWidget> {

  @override
  void didChangeDependencies() {
    // Adjust the provider based on the image type
    precacheImage(new AssetImage('...'));
    super.didChangeDependencies();
  }

}

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)