Skip to content

Commit 9e71d89

Browse files
committed
Remove unused StreamBuilder
1 parent 41c3fd1 commit 9e71d89

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

lib/draggable_home.dart

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -202,20 +202,13 @@ class _DraggableHomeState extends State<DraggableHome> {
202202
pinned: true,
203203
stretch: true,
204204
centerTitle: widget.centerTitle,
205-
title: StreamBuilder<bool>(
206-
stream: null,
207-
builder: (context, snapshot) {
208-
if (widget.alwaysShowTitle) {
209-
return widget.title;
210-
} else {
211-
return AnimatedOpacity(
205+
title: widget.alwaysShowTitle
206+
? widget.title
207+
: AnimatedOpacity(
212208
opacity: streams[0] ? 1 : 0,
213209
duration: Duration(milliseconds: 100),
214210
child: widget.title,
215-
);
216-
}
217-
},
218-
),
211+
),
219212
collapsedHeight: appBarHeight,
220213
expandedHeight: streams[1] ? fullyExpandedHeight : expandedHeight,
221214
flexibleSpace: Stack(

0 commit comments

Comments
 (0)