Closed tudosxxx closed 5 months ago
2.Refresh every time you close the page
onFrame?.call(currentIndex); notifyListeners(); this line _run();
E/flutter (17534): Once you have called dispose() on a GifController, it can no longer be used.
E/flutter (17534): #0 ChangeNotifier.debugAssertNotDisposed.
3.I back to a page and refresh the UI, which will speed up the playback of gif。 GifPage to BPage_back(result: "aaa") GifPage setstate((){});
String _getKeyImage(ImageProvider provider) { return provider is NetworkImage ? provider.url : provider is AssetImage ? provider.assetName : provider is MemoryImage ? provider.bytes.toString() : provider is FileImage // add this ? provider.file.path : ""; }