更新同步遥控器

This commit is contained in:
wyf
2025-06-30 21:56:15 +08:00
parent 0e0f475536
commit adaaf561ee
8 changed files with 148 additions and 29 deletions

View File

@@ -22,6 +22,11 @@ class MainPageBBottomChange extends StatefulWidget {
}
}
static int? getCurrentIndex() {
final state = globalKey.currentState;
return state?.selectedIndex;
}
@override
_HomePageState createState() => _HomePageState();
}
@@ -129,15 +134,13 @@ class _HomePageState extends State<MainPageBBottomChange>
selectedIndex = index;
});
}
Future<void> dealWebSource(int index) async {
WebviewTestController webviewTestController = Get.find();
if (index == 2) {
await webviewTestController.web.jsbridge?.dart
.pageActive();
}else{
await webviewTestController.web.jsbridge?.dart
.pageInActive();
}
await webviewTestController.web.jsbridge?.dart.pageActive();
} else {
await webviewTestController.web.jsbridge?.dart.pageInActive();
}
}
}