reorderables icon indicating copy to clipboard operation
reorderables copied to clipboard

The text field cannot be focused.

Open seekcx opened this issue 3 years ago • 5 comments

ReorderableColumn(
  onReorder: (_, __) {},
  children: <Widget>[
    TextField(key: ValueKey(1)),
  ],
)

seekcx avatar Jun 18 '21 08:06 seekcx

Any solution?

luis-cruzt avatar Sep 23 '21 22:09 luis-cruzt

i have the same problem, any solution?

leavky avatar May 06 '22 02:05 leavky

I sloved the problem, give the TextFiled a controller.

              ReorderableSliverList(
                // delegate: ReorderableSliverChildListDelegate(_rows),
                //          ),
                delegate: ReorderableSliverChildBuilderDelegate(
                    (BuildContext context, int index) {
                  // return _rows[index];
                  TextEditingController textEditingController;
                  textEditingController =
                      TextEditingController(text: 'abcdefg');
                  return Row(
                    children: [
                      const Icon(Icons.ac_unit_outlined),
                      Expanded(
                          child: TextField(
                        controller: textEditingController,
                      ))
                    ],
                  );
                  // return TextField(
                  //   controller: textEditingController,
                  // );
                }, childCount: _rows.length),
                onReorder: _onReorder,
              ),

image

leavky avatar May 06 '22 03:05 leavky

But then how do you get the long press to work for copy/paste?

sunilguptasg avatar May 12 '22 19:05 sunilguptasg

click textFiled and when focus in textFiled you can copy/past

leavky avatar May 15 '22 02:05 leavky