Row s Children Must Not Contain Any Null Values Flutter Error

0 votes

Hi Guys,

I am trying to run the Flutter command. But it is showing me the below error.

Row's Children Must Not Contain Any Null Values Flutter Error.

How can I solve this null value error?

Sep 15, 2020 in Others by akhtar
• 38,170 points
1,097 views

1 answer to this question.

0 votes

Hi@akhtar,

You get this error because in your code you return something. But initially, that has a null value. And flutter will not allow you to pass any null value. So you need to use if else condition in your code as shown below.

children: <Widget>[
            buttonImage == null ? Container() : buttonImage,
answered Sep 15, 2020 by MD
• 95,060 points

Related Questions In Others

0 votes
3 answers

error "VT-x is not available (VERR_VMX_NO_VMX)."

Either the VT-x is disabled in the BIOS ...READ MORE

answered Oct 27, 2020 in Others by Diksha
• 140 points

edited Oct 27, 2020 by Gitika 280 views
0 votes
1 answer
+1 vote
3 answers

Flutter plugin not installed; this adds Flutter specific functionality.

Here Is All Possible Solution Added Flutter ...READ MORE

answered Dec 15, 2020 in Others by Blogging
• 140 points
16,889 views
0 votes
1 answer

What is the future of flutter?

Hi@MD, Flutter is a rather new cross-platform framework ...READ MORE

answered Jul 17, 2020 in Others by akhtar
• 38,170 points
134 views
0 votes
1 answer

What is Flutter?

Hi@akhtar, Flutter is an app SDK for building ...READ MORE

answered Jul 17, 2020 in Others by MD
• 95,060 points
213 views
0 votes
1 answer

How to install Flutter in Windows system?

Hi@akhtar, You can follow the below-given steps to ...READ MORE

answered Jul 17, 2020 in Others by MD
• 95,060 points
343 views
0 votes
1 answer

How to check the connected device name in Flutter?

Hi@akhtar, Flutter has its command own command to ...READ MORE

answered Jul 17, 2020 in Others by MD
• 95,060 points
513 views
0 votes
1 answer

Flutter Error: MediaQuery.of() called with a context that does not contain a MediaQuery.

Hi@akhtar, You need a MaterialApp or a WidgetsApp around your widget. They ...READ MORE

answered Aug 27, 2020 in Others by MD
• 95,060 points
2,537 views