Is it possible to assign a string as a parameter in flutter?

I am trying to go though this list of strings and get a box colored at each color, is it possible in any other way I am missing? <pre><code>List&lt;String&gt; myCo...

Pass variable to child widget FLUTTER

I've got Container with ListView Builder with child widget placed in separated file. <pre><code>itemCount: articles.length, itemBuilder: (context, index ) =&gt; al...

How to remove the RenderFlex error in flutter for column with listview.builder?

I am building the column in flutter as below code which has a nested ListView.Builder, but it is giving display error of RenderFlex, how should I resolve it? <bloc...

How to scroll to an index by its index number in flutter listview?

I have a listview . I want to go to a certain widget by it's corresponding index number. I've tried with ScrollController, but it need offset value to jumpTo t...

modalBottomSheet + ListView, how to sync scroll?

I have a modalBottomSheet with a scrolling list view inside of it. I want for the scroll control to be transferred to the bottom sheet when the listView reaches...

Problem with ListView displaying with Navigator 2.0

I'm having set of screens containing ListView on each. So, when navigating forward I'm getting an artifact – a background fill from chosen item of a listview on every...

How to add TextField values in a dynamic list of Text widgets - Flutter

I have a TextField with an add button, and also a list. I want TextField values to be added to the list, and each of them should be shown in Text widgets dynamically....

How manage state of different widgets in ListView flutter?

I am building a Flutter App where a List is shown using ListView. Which returns a ListTile with User Information. The <code>ListTile</code> contains a <code>leading</c...

How to deselect the already selected item after tap on another item ListView in Flutter?

I would like to allow user to select only one option from the list, if he select one after another, then only last option should be considered as selected. In...

flutter: How to achieve the gradually fading text in a ListView?

I want to achieve the style like the picture. A <code>ListView</code> containing a few <code>Container</code>, and each container has some text. When scrolling the <co...

type bool is not a subtype of type double? in type cast in ExpansionTile after removing one of the list Item flutter

I've been made a list of Card and ExpansionTile with a list view builder, because of saving last values in textformfields I've used key for ExpansionTile as a type of...

Flutter add to favorites button is selecting all items and

I am building a flutter ecommerce app and I'm having an issue where if I click the add to favorites button it selects all items and not the specific item selected. My...

Add list of details to firebase from textformfield?

I'am creating a student mark-sheet. I'm getting the student name list from the firebase then show in the ListView.builder it returns the card view in the card view I a...

flutter text editing controller listview.builder

I want the page to display a list of social media apps where the user can input their usernames/ details. I want to be able to extract this input data along with the a...

Flutter Error: The body might complete normally, causing null to be returned, but the return type is a potentially non-nullable type

I'm using the new dart version &lt;2.13.0-107.0.dev&gt; with null safety enabled. With this List of tasks: <pre class="lang-dart prettyprint-override"><code...