Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

flutter cachImage

class SomeWidgetState extends State<SomeWidget> {

  @override
  void initState() {
    super.initState();
    precacheImage(NetworkImage('someurl.jpg'));
  }

  ...
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #flutter #cachImage
ADD COMMENT
Topic
Name
8+1 =