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,230 points
4,938 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,

To know more about Flutter, join our Flutter APP Development Course today.

answered Sep 15, 2020 by MD
• 95,440 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 1,083 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 16, 2020 in Others by Blogging
• 140 points
20,451 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,230 points
891 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,440 points
1,058 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,440 points
1,506 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,440 points
7,109 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,440 points
4,811 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP