add ScrollController to each ScrollView

fix "The provided ScrollController is currently attached to more than one ScrollPosition"

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2022-09-12 11:23:45 +08:00
parent 42d17f9d2b
commit 76e7bf5293
9 changed files with 18 additions and 2 deletions

View File

@@ -85,6 +85,7 @@ class _PeerWidgetState extends State<_PeerWidget> with WindowListener {
child: Text(translate("Empty")),
)
: SingleChildScrollView(
controller: ScrollController(),
child: ObxValue<RxString>((searchText) {
return FutureBuilder<List<Peer>>(
builder: (context, snapshot) {