The argument type Object cant be assigned to the parameter type ImageProvider<Object>

I just updated to Dart2 and Flutter sdk: '&gt;=2.12.0 &lt;3.0.0' and now this if statement breaks: <pre><code> decoration: new BoxDecoration( shape:...

Flutter: How to check if a variable is a ListObject??

Code: <pre><code>print(item); print(item.runtimeType); print(item.runtimeType is List); print(item.runtimeType is List&lt;Object?&gt;); </code></pre> Result:</p...

Need Query or condition to get selected data in flutter

I am stuck in creating query for the selected items and show selected data on other page. So help me to create query or condition. when I press floating action button...

How can I arrange icons in a sequence?

<a href="https://i.stack.imgur.com/978tr.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/978tr.jpg" alt="enter image description here" /></a> <p...

This function has a nullable return type of String? but ends without returning a value

I am trying to figure out why I get the Error in Title when adding if-Statements to my program. Without the if-statements everything works just fine. I hope someone ca...

Password &amp; confirm pass is not same Validation in flutter with TextEditingController is not Working

I want to Check First Password &amp; Confirm Password is the same or not if Not Showing the message is not the same. And if it's the same Call the API to Update this P...

how can i change the color property with if else condition flutter

Hello i created a custom BottomNavigationBar in flutter and want to use a if else condition in the color property of the IconButton. Does anyone know what is the mista...

The onTapped of my Drawer tiles gets executed when i click my drawer menu button

So I made a custom app drawer for my flutter app. but now when I click my open drawer menu button, The first else statement of my widget tree gets executed. I am relat...

flutter and firebase error: type String? cant be assigned to the parameter type Object

I am creating a workout app using flutter &amp; firebase. I have an <code>ExerciseStream</code> class which contains a StreamBuilder widget. in the StreamBuilder conta...

how to change an image when I click a toggle button(flutter)

<a href="https://i.stack.imgur.com/crCkh.jpg" rel="nofollow noreferrer">enter image description here</a> I cannot embed image because I don't have 10 reputation...

Inquiry about using if statement with Widget what these dots meaning if(condition) ...[ ]

Inquiry about using if statement with Widget.What these three dots meaning if(condition) ...[something ] For example: <pre class="lang-dart prettyprint-ov...

Does Flutter has the possibility to use only a if condition inside the build method?

I worked with flutter for almost a year and since it wasn't production-ready for web development I needed to switch to react. To render object conditionally ins...

if else statement inside if else ternary statement in dart

I have a case where i need to specify <pre><code>if (_amplifyConifured) { if (_isUserIsLoggedIn) { return DashboardScreen.routeName; } else { return Lo...

Unable to implement if int value = 75 then proceed to next page logic

I am working on a certificate generation module where i want to generate certificate only if the input int value of 'percentage' is greater or equal to 75. I wa...

How to use short if in flutter?

How to use short if in flutter this code can use: <pre><code>1 + 1 == 2 ? print('check true') : print('check false'); Ans. print('check true') </code></pre>...