mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-27 05:45:51 +08:00
@@ -33,21 +33,21 @@ class _RankPageState extends State<RankPage>
|
||||
child: Column(
|
||||
children: List.generate(
|
||||
RankType.values.length,
|
||||
(index) => Obx(
|
||||
() => IntrinsicHeight(
|
||||
child: InkWell(
|
||||
onTap: () {
|
||||
if (_rankController.tabIndex.value != index) {
|
||||
_rankController.tabIndex.value = index;
|
||||
_rankController.tabController.animateTo(index);
|
||||
} else {
|
||||
_rankController.animateToTop();
|
||||
}
|
||||
},
|
||||
child: ColoredBox(
|
||||
color: index == _rankController.tabIndex.value
|
||||
? theme.colorScheme.onInverseSurface
|
||||
: theme.colorScheme.surface,
|
||||
(index) => IntrinsicHeight(
|
||||
child: Obx(
|
||||
() => Ink(
|
||||
color: index == _rankController.tabIndex.value
|
||||
? theme.colorScheme.onInverseSurface
|
||||
: theme.colorScheme.surface,
|
||||
child: InkWell(
|
||||
onTap: () {
|
||||
if (_rankController.tabIndex.value != index) {
|
||||
_rankController.tabIndex.value = index;
|
||||
_rankController.tabController.animateTo(index);
|
||||
} else {
|
||||
_rankController.animateToTop();
|
||||
}
|
||||
},
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
|
||||
Reference in New Issue
Block a user