Skip to content

TextField inside Slidable is instantly dismissed #534

Description

@maxfrees

I have a text field inside listtile, and when i click the field to edit, the keyboard shows for a second then it auto dismisses. What can be done to avoid this behaviour?

Slidable(
                        key: UniqueKey(),
                        // The end action pane is the one at the right or the bottom side.
                        endActionPane: ActionPane(
                          extentRatio: 0.3,
                          motion: ScrollMotion(),
                          children: [
                            SlidableAction(
                              onPressed: (_) async {
                                //...
                              },
                              backgroundColor: Colors.red,
                              foregroundColor: Colors.white,
                              icon: Icons.delete,
                              label: 'Delete',
                            ),
                          ],
                        ),
                        child: ListTile(
                          title: TextFieldView(onChanged: (text) {
                            //....
                          },),
                        ),
                      )

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions