pluto_grid icon indicating copy to clipboard operation
pluto_grid copied to clipboard

TextField as cell renderer cannot delete input content

Open lvyandev opened this issue 3 years ago • 9 comments

It works well on emulator, however when I test on real device, there is the problem.

Tested on Samsung SM 9550 and redmi K40.

PlutoColumn(
        title: 'column3',
        field: 'column3',
        type: PlutoColumnType.text(),
        renderer: (context) {
          return TextField();
        },
      ),

https://user-images.githubusercontent.com/18045999/149501618-6befca8f-2f8e-4b9d-a26b-5ca13ba07ca2.mp4

lvyandev avatar Jan 14 '22 10:01 lvyandev

Doesn't that issue happen with pure flutter and not with PlutoGrid ?

bosskmk avatar Jan 17 '22 06:01 bosskmk

Yes, it only happens when I use TextField as renderer. Also, if content come up with EN keyboard recommendations, then content can be deleted

https://user-images.githubusercontent.com/18045999/149721352-361d4917-67ec-4e19-b432-70a5ef9cf85e.mp4

.

lvyandev avatar Jan 17 '22 06:01 lvyandev

Unfortunately I develop on Windows and my actual mobile device is an iPhone. I can't test it on a real device.

In the current state, there is no problem if you use the built-in text widget instead of the renderer ?

Then, if you tell me why you use renderer for the built-in text widget, adding that function to the built-in widget is considered the first solution. (If your function is universal, I'll make sure to add it in the next version.)

Or please suggest another solution.

bosskmk avatar Jan 17 '22 06:01 bosskmk

build-in text widget has no problem on input, but I do find it has some focus problem on very rare situations which I cannot reproduce now, I would check again if I use it correctly. Thank you!  😁

lvyandev avatar Jan 17 '22 07:01 lvyandev

Another reason I'd like to replace it is that current number type has default value 0, cannot accept empty or null value on this type.

lvyandev avatar Jan 17 '22 07:01 lvyandev

My job is migrating website business to mobile device, so I found issues mainly on mobile.😆😆

lvyandev avatar Jan 17 '22 07:01 lvyandev

If you give me a feature or opinion about mobile, I will try to reflect it. I am a web backend developer mainly using nodejs. 😆

bosskmk avatar Jan 17 '22 07:01 bosskmk

If next version can accept cell null value, it would be nice. Another suggestion is adding TextInputType to text and number type, and TextInputFormatters to allow custom control.

lvyandev avatar Jan 17 '22 07:01 lvyandev

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Sep 16 '22 11:09 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Sep 30 '22 11:09 github-actions[bot]