Repository: flutter
Issue: [flutter_svg] SvgPicture.network does not redownload the image after failing 
Labels: package,p: flutter_svg

_Imported from https://github.com/dnfield/flutter_svg/issues/765_

Original report by @srolemberg on Sep 5, 2022

SvgPicture library does not redownload the asset from network after a failure.

I'm trying to apply this code with a very simplified 2 screen application.

Page One
```
class PageOne extends StatefulWidget {
  const PageOne({Key? key}) : super(key: key);

  @override
  State createState() => _PageOneState();
}

class _PageOneState extends State<PageOne> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text("Page One"),
      ),
      body: Center(
        child: MaterialButton(
            color: Theme.of(context).primaryColor,
            onPressed: () {
              setState(() {
                Navigator.push(context,
                    MaterialPageRoute(builder: (context) => const PageTwo()));
              });
            },
            child: const Text("new page")),
      ),
    );
  }
}

```

Page two

```
import 'package:flutter_svg/svg.dart';

class PageTwo extends StatefulWidget {
  const PageTwo({Key? key}) : super(key: key);

  @override
  State createState() => _PageTwoState();
}

class _PageTwoState extends State<PageTwo> {
  static const String svglink =
      "https://uxwing.com/wp-content/themes/uxwing/download/web-app-development/embed-code-icon.svg";

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text("Page Two"),
      ),
      body: Center(
        child: Container(
          width: 150,
          height: 150,
          padding: const EdgeInsets.all(8),
          color: Colors.grey,
          child: SvgPicture.network(
            svglink,
            color: Colors.pink,
            placeholderBuilder: (context) => const Center(
              child: Text("my fancy placeholder"),
            ),
          ),
        ),
      ),
    );
  }
}

```

In the first example, with the system operating with everything online, both the cache and the download occur normally.


[svg-ok.webm](https://user-images.githubusercontent.com/8094865/188498387-41ccb597-ebca-4901-9068-3b2985b7510e.webm)

However, if the page starts offline, the library is not able to re-download it if the system comes back online. Nor does it retrieve the existing cache of the same image that was previously saved.

[svg-not-ok.webm](https://user-images.githubusercontent.com/8094865/188498401-5d03a0d6-9874-4b41-b47a-51402d02d346.webm)



```
➜  ~ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.3.0, on macOS 12.3.1 21E258 darwin-x64, locale
    pt-BR)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 13.4.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.2)
[✓] IntelliJ IDEA Community Edition (version 2022.1.4)
[✓] Connected device (2 available)
[✓] HTTP Host Availability

  flutter_svg: ^1.1.4

```

For this example, I used the latest version of both the library and the sdk, however, it also occurs in older versions, which is where I initially encountered the problem.

```
flutter: 2.2.3
flutter_svg: ^0.22.0

```