更新同步遥控器
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user