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,260 points
5,435 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,460 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,524 views
0 votes
1 answer
+1 vote
2 answers

Flutter plugin not installed; this adds Flutter specific functionality.

Hatayı çözebildin mi? Bende de aynı hata ...READ MORE

answered Nov 21, 2020 in Others by Osman
21,045 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,260 points
1,148 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,460 points
1,450 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,460 points
1,781 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,460 points
8,160 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,460 points
5,116 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