We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41c3fd1 commit 9e71d89Copy full SHA for 9e71d89
lib/draggable_home.dart
@@ -202,20 +202,13 @@ class _DraggableHomeState extends State<DraggableHome> {
202
pinned: true,
203
stretch: true,
204
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(
+ title: widget.alwaysShowTitle
+ ? widget.title
+ : AnimatedOpacity(
212
opacity: streams[0] ? 1 : 0,
213
duration: Duration(milliseconds: 100),
214
child: widget.title,
215
- );
216
- }
217
- },
218
- ),
+ ),
219
collapsedHeight: appBarHeight,
220
expandedHeight: streams[1] ? fullyExpandedHeight : expandedHeight,
221
flexibleSpace: Stack(
0 commit comments