Skip to content

同一个页面两个输入框切换输入报错 #82

@Xmaoyh

Description

@Xmaoyh

`======== Exception caught by gesture ===============================================================
The following assertion was thrown while handling a gesture:
A KeyboardController was used after being disposed.

Once you have called dispose() on a KeyboardController, it can no longer be used.
When the exception was thrown, this was the stack:
#0 ChangeNotifier._debugAssertNotDisposed. (package:flutter/src/foundation/change_notifier.dart:114:9)
#1 ChangeNotifier._debugAssertNotDisposed (package:flutter/src/foundation/change_notifier.dart:120:6)
#2 ChangeNotifier.notifyListeners (package:flutter/src/foundation/change_notifier.dart:288:12)
#3 ValueNotifier.value= (package:flutter/src/foundation/change_notifier.dart:412:5)
#4 KeyboardController.value= (package:cool_ui/keyboards/keyboard_controller.dart:50:11)
#5 KeyboardController.addText (package:cool_ui/keyboards/keyboard_controller.dart:107:5)`

输入完一个再点击另一个输入时,报错。

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