Avoid runtime error when placed inside TabBarView

pull/410/head
Aldy J 4 years ago
parent 5b230a718b
commit 50b1d4daaf
  1. 2
      lib/src/widgets/toolbar/arrow_indicated_button_list.dart

@ -60,6 +60,8 @@ class _ArrowIndicatedButtonListState extends State<ArrowIndicatedButtonList>
} }
void _handleScroll() { void _handleScroll() {
if (!mounted) return;
setState(() { setState(() {
_showLeftArrow = _showLeftArrow =
_controller.position.minScrollExtent != _controller.position.pixels; _controller.position.minScrollExtent != _controller.position.pixels;

Loading…
Cancel
Save