mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-24 11:06:51 +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';
|
||||
|
||||
enum LaterViewType {
|
||||
all('全部'),
|
||||
toView('未看'),
|
||||
unfinished('未看完'),
|
||||
viewed('已看完');
|
||||
all(0, '全部'),
|
||||
// toView(1, '未看'),
|
||||
unfinished(2, '未看完'),
|
||||
// viewed(3, '已看完'),
|
||||
;
|
||||
|
||||
int get type => index;
|
||||
Widget get page => LaterViewChildPage(laterViewType: this);
|
||||
|
||||
final int type;
|
||||
final String title;
|
||||
const LaterViewType(this.title);
|
||||
const LaterViewType(this.type, this.title);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user