Tag: Widget

  • Flutter: add drag handle to ReorderableListView

    Flutter: add drag handle to ReorderableListView

    Written by

    in

    By default, ReorderableListView only shows drag handles on desktop (GitHub). To enable a drag handle inside a ReorderableListView, it is possible to add the following code into the child’s subtree: A full example usage with a very simple list: This will result in the following output:

    Read more

  • Flutter: expand TextField height to match parent widget

    Flutter: expand TextField height to match parent widget

    Written by

    in

    To expand the height of TextField to match the parents widgets height, the following code can be used: The important thing is, that both minLines and maxLines need to be set to null. To set the height of the Container to match it’s parent or even the complete screen, height can be set to double.infinity.

    Read more