1

Implementing showcaseview in Flutter raises this error and I can't figure out where it's coming from. The code shown below is part of my project:

BuildContext myContext;
  
  initState(){
  WidgetsBinding.instance.addPostFrameCallback((_) {
  Future.delayed(const Duration(milliseconds: 400), () {
    ShowCaseWidget.of(myContext).startShowCase([_timeline_filter]);
  
  });
});
super.initState();
  }
  
S. Dre
  • 647
  • 1
  • 4
  • 18
lofi vern
  • 21
  • 3
  • 1
    If I am not mistaken the variable myContext doesn’t hold any value – DEFL May 02 '22 at 07:48
  • Using the default context still produces the same error – lofi vern May 02 '22 at 08:57
  • You should have mentioned that showecasewidget comes from a plugin please try this link: https://stackoverflow.com/questions/66077083/unhandled-exception-exception-please-provide-showcaseview-context-in-flutter – DEFL May 02 '22 at 09:02
  • None of those solutions work unfortunately – lofi vern May 02 '22 at 11:55

0 Answers0