Skip to content

Commit d84519b

Browse files
committed
Use null coalescing operator, use SizedBox instead of empty Container
1 parent 05b0aea commit d84519b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/draggable_home.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,9 +219,7 @@ class _DraggableHomeState extends State<DraggableHome> {
219219
FlexibleSpaceBar(
220220
background: Container(
221221
child: fullyExpanded
222-
? (widget.expandedBody == null
223-
? Container()
224-
: widget.expandedBody)
222+
? (widget.expandedBody ?? const SizedBox())
225223
: widget.headerWidget,
226224
),
227225
),

0 commit comments

Comments
 (0)