2

Web アプリが firebase でホストされている場合、RawKeyboardListener の onKey イベントが発生しません。localhost でホストすると、onKey イベントが発生します。localhost と firebase ホスティングの間で rawkeyboardlistener の動作に違いがある理由を知っている人はいますか?

child: RawKeyboardListener(
                  focusNode: _keyboardListenerNode,
                  onKey: () {print("rawkeyboardlistener onkey fired");},
                  child: Form(
                      key: _formKey,
                      onChanged: () {
                        print("Form on changed called");
                      },
                      child: TextFormField(
                        autofocus: true,
                        focusNode: _textNode,
                        controller: _controller,
                        decoration: InputDecoration(
                          border: InputBorder.none,
                          labelText: widget._hintText,
                          suffix: IconButton(
                            icon: Icon(Icons.cancel),
                            onPressed: () {},
                          ),
                        ),
                        onSaved: (val) {
                          setState(() {
                            scannedBarcode = val;
                          });
                        },
                      )))
4

0 に答える 0