mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-01 00:28:18 +08:00
remove invalid later view type
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user