Skip to content

Commit 4347294

Browse files
biggs0125natebiggs
andauthored
Don't assume footer is present in _ConsoleOutputState builder. (#9342)
--------- Co-authored-by: Nate Biggs <[email protected]>
1 parent b764dfb commit 4347294

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

packages/devtools_app/lib/src/shared/console/console.dart

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,10 +209,11 @@ class _ConsoleOutputState extends State<_ConsoleOutput>
209209
),
210210
),
211211
// consider constraining a max height.
212-
Padding(
213-
padding: const EdgeInsets.only(top: denseSpacing),
214-
child: widget.footer!,
215-
),
212+
if (widget.footer != null)
213+
Padding(
214+
padding: const EdgeInsets.only(top: denseSpacing),
215+
child: widget.footer,
216+
),
216217
],
217218
),
218219
),

0 commit comments

Comments
 (0)