mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-19 08:36:17 +08:00
opt anim to top
opt refresh Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -77,20 +77,32 @@ class _LiveSearchPageState extends State<LiveSearchPage> {
|
||||
),
|
||||
),
|
||||
],
|
||||
onTap: (index) {
|
||||
if (!_controller.tabController.indexIsChanging) {
|
||||
if (index == 0) {
|
||||
_controller.roomCtr.animateToTop();
|
||||
} else {
|
||||
_controller.userCtr.animateToTop();
|
||||
}
|
||||
}
|
||||
},
|
||||
),
|
||||
Expanded(
|
||||
child: tabBarView(
|
||||
controller: _controller.tabController,
|
||||
children: [
|
||||
LiveSearchChildPage(
|
||||
controller: _controller.roomCtr,
|
||||
searchType: LiveSearchType.room,
|
||||
),
|
||||
LiveSearchChildPage(
|
||||
controller: _controller.userCtr,
|
||||
searchType: LiveSearchType.user,
|
||||
),
|
||||
],
|
||||
child: Material(
|
||||
color: Colors.transparent,
|
||||
child: tabBarView(
|
||||
controller: _controller.tabController,
|
||||
children: [
|
||||
LiveSearchChildPage(
|
||||
controller: _controller.roomCtr,
|
||||
searchType: LiveSearchType.room,
|
||||
),
|
||||
LiveSearchChildPage(
|
||||
controller: _controller.userCtr,
|
||||
searchType: LiveSearchType.user,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user