About 13,100,000 results
Open links in new tab
  1. dart - how to remove widget based on it's index in flutter - Stack Overflow

    Oct 18, 2019 · Maybe you can try to draw or not draw the widget if the button is tapped or not, you can create a var in the code to handle the state of the widget and when you tap the close …

  2. Flutter Stack: A Simple Guide for Overlapping Widgets - DhiWise

    Apr 30, 2025 · Removing elements from a Stack in Flutter involves removing the corresponding child widget from the children property of the Stack widget. This can be done by simply …

  3. Stack class - widgets library - Dart API - Flutter

    Using a Stack you can position widgets over one another. children: <Widget>[ Container( width: 100, height: 100, color: Colors.red, ), Container( width: 90, height: 90, color: Colors.green, ), …

  4. Flutter - Stack Widget - GeeksforGeeks

    Oct 18, 2024 · T he Stack widget in Flutter is a powerful tool that allows for the layering of multiple widgets on top of each other. While layouts like Row and Column arrange widgets horizontally …

  5. Exploring Stack and IndexedStack in Flutter - Medium

    Feb 10, 2019 · To change this, you can align or position your widget using the Align or Positioned widget. An Align widget usually takes widget to extreme positions. So for example, if we enter …

  6. How to only remove top widget from stack, if user tap on that in flutter?

    May 23, 2019 · I can able remove top of widget from stack but how can I find user only tapped on top widget in stack? In initState, generating 20 of Positioned widgets and storing in list and …

  7. dart - How to remove a widget from tree - Stack Overflow

    May 4, 2017 · I finally found a solution to hide/remove a widget : I just replaced it by an empty widget (may be I will add a small animation) but I am still looking for a cleaner way to do this.

  8. How to remove any widget from a list and set its state in flutter

    Mar 2, 2022 · Then, in your removal code, just do: onPressed: { setState(() { option_var--; options.removeAt(option_var); }); }, Where you keep the option_var updated, and you always …

  9. flutter - Is there a way to remove a widget from the ... - Stack Overflow

    Jun 4, 2021 · What you're looking for here is the Dismissible Widget, which as the docs describe is a widget that can be dismissed by dragging in the indicated direction. Check out the flutter …

  10. Flutter callbacks - Removing a widget in a list from child

    Mar 18, 2020 · I've tried to wrap the custom which in a gesture detector and then add a onLongPress which removes the widget at the index but it's not working. How can I remove …

  11. Some results have been removed
Refresh