Closed luislocio closed 3 years ago
Hey, solved it using an ValueListenableBuilder. Sorry for bothering.
ValueListenableBuilder(
valueListenable: widget.panelController,
builder: (context, isOpen, child) {
return IconButton(
icon: isOpen ? Icon(Icons.arrow_drop_down) : Icon(Icons.arrow_drop_up),
onPressed: () => _togglePannel(),
);
},
),
Is there a way to react to the panel status? I want to do something when the user open and closes the panel through.
I've seen others packages with methods like onClose and onOpen, but they are not as nice as your package.