sms_autofill icon indicating copy to clipboard operation
sms_autofill copied to clipboard

Copy paste is not working on 2.3.0 - UI breaks on long press

Open MSarmadQadeer opened this issue 1 year ago • 0 comments

What is this happening on long press? UI is breaking and no option for pasting the copied code.

WhatsApp Image 2024-02-05 at 1 23 38 PM

PinFieldAutoFill(
  decoration: BoxLooseDecoration(
    strokeColorBuilder: PinListenColorBuilder(
        Theme.of(context).colorScheme.onBackground,
        Theme.of(context).colorScheme.primary),
    bgColorBuilder: const FixedColorBuilder(Colors.transparent),
    strokeWidth: 1,
  ),
  autoFocus: true,
  cursor: Cursor(
    color: Theme.of(context).colorScheme.primary,
    enabled: true,
    width: 1,
  ),
  currentCode: codeValue,
  onCodeSubmitted: _submitOtp,
  codeLength: 6,
  onCodeChanged: (code) {
    codeValue = code.toString();
    if (code?.length == 6) {
      _submitOtp(code);
    }
    if (kDebugMode) {
      print("onCodeChanged $code");
    }
    setState(() {
      codeValue = code.toString();
    });
  },
)

MSarmadQadeer avatar Feb 05 '24 08:02 MSarmadQadeer