Am using the showcase_view package and following everything mentioned in the example but it is not working at all not showing the showcase and also not showing an error.
Here is my code :
final _searchShowcase = GlobalKey();
BuildContext myContext;
void initState() {
WidgetsBinding.instance.addPostFrameCallback((_) {
ShowCaseWidget.of(myContext).startShowCase([_searchShowcase]);
super.initState();
}
@override
Widget build(BuildContext context) {
return ShowCaseWidget(
builder: Builder(builder: (context){
myContext =context;
return Scaffold(
body: SingleChildScrollView(
controller: _scrollController,
child: Container(
padding: EdgeInsets.only(bottom: 30, top: 30),
child: StickyHeader(
header: Showcase(
key: _searchShowcase,
title: '${translator.translate("search")}',
description: '${translator.translate("search")}',
child: SearchBarWidget()
),
content:Column(....)
);
);}
And the screen just opens normally without showing the showcase view or even doing any action.. where is the mistake here?