flutter_load_widget icon indicating copy to clipboard operation
flutter_load_widget copied to clipboard

LoadingProvider throws away entire widget tree

Open DreadBoy opened this issue 4 years ago • 0 comments

Including provider this way:

MaterialApp(
  builder: (context, widget) {
    return LoadingProvider(
      child: widget,
    );
  },
);

throws away entire widget tree inside LoadingProvider if anything above changes, for example EasyLocalization locale or some other provider. This is performance problem. Rebuilding widget tree is fine, throwing it away by changing widget key and rebuilding it is wasteful. Is this intentional behaviour or bug?

DreadBoy avatar Nov 30 '20 09:11 DreadBoy