From 77bd83ac85148b4277ac4a26e7d6ed02f53d73e8 Mon Sep 17 00:00:00 2001 From: Akbar Pulatov Date: Thu, 19 Aug 2021 17:10:00 +0500 Subject: [PATCH] Bug fix: Can not attach SnappingSheetController #63 --- lib/src/snapping_sheet_widget.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/src/snapping_sheet_widget.dart b/lib/src/snapping_sheet_widget.dart index f2e45d2..9beb63d 100644 --- a/lib/src/snapping_sheet_widget.dart +++ b/lib/src/snapping_sheet_widget.dart @@ -334,6 +334,9 @@ class _SnappingSheetState extends State @override Widget build(BuildContext context) { + if (widget.controller != null) { + widget.controller!._attachState(this); + } return LayoutBuilder( builder: (context, constraints) { _latestConstraints = constraints;