Answers for "load cache image using cache network image in flutter"

3

cache network image flutter

cached_network_image: ^2.0.0 
            CachedNetworkImage(
                      imageUrl: yoururl,
                      errorWidget: (context, url, error) => Text("error"),
                      imageBuilder: (context, imageProvider) => CircleAvatar(
                        radius: 120,
                        backgroundImage: imageProvider,
                      ),
                      placeholder: (context, url) => CircularProgressIndicator(
                        backgroundColor: primary,
                      ),
                    ),
Posted by: Guest on May-26-2021
0

flutter clear image cache

import 'package:flutter/services.dart';

imageCache.clear();
Posted by: Guest on April-21-2021

Code answers related to "load cache image using cache network image in flutter"

Browse Popular Code Answers by Language