remove invalid later view type

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-06-10 15:45:02 +08:00
parent 88288f4a7a
commit f5d52237c5
2 changed files with 9 additions and 8 deletions

View File

@@ -2,14 +2,15 @@ import 'package:PiliPlus/pages/later/child_view.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
enum LaterViewType { enum LaterViewType {
all('全部'), all(0, '全部'),
toView('未看'), // toView(1, '未看'),
unfinished('未看完'), unfinished(2, '未看完'),
viewed('已看完'); // viewed(3, '已看完'),
;
int get type => index;
Widget get page => LaterViewChildPage(laterViewType: this); Widget get page => LaterViewChildPage(laterViewType: this);
final int type;
final String title; final String title;
const LaterViewType(this.title); const LaterViewType(this.type, this.title);
} }

View File

@@ -83,9 +83,9 @@ class _LaterPageState extends State<LaterPage>
child: Column( child: Column(
children: [ children: [
TabBar( TabBar(
isScrollable: true, // isScrollable: true,
// tabAlignment: TabAlignment.start,
controller: _tabController, controller: _tabController,
tabAlignment: TabAlignment.start,
tabs: LaterViewType.values.map((item) { tabs: LaterViewType.values.map((item) {
final count = _baseCtr.counts[item]; final count = _baseCtr.counts[item];
return Tab( return Tab(