generated from dellevin/template
清除无效引用
This commit is contained in:
@@ -68,13 +68,6 @@ class _CharacterFormPageState extends State<CharacterFormPage> {
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
String get _entityLabel => switch (widget.entityType) {
|
||||
'movie' => '影视',
|
||||
'book' => '书籍',
|
||||
'game' => '游戏',
|
||||
_ => '作品',
|
||||
};
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final colors = Theme.of(context).colorScheme;
|
||||
|
||||
@@ -247,12 +247,12 @@ class _GameSharePageState extends State<GameSharePage> {
|
||||
|
||||
class _DashedLinePainter extends CustomPainter {
|
||||
final Color color;
|
||||
final double dashWidth;
|
||||
final double dashSpace;
|
||||
_DashedLinePainter({required this.color, this.dashWidth = 4, this.dashSpace = 4});
|
||||
_DashedLinePainter({required this.color});
|
||||
|
||||
@override
|
||||
void paint(Canvas canvas, Size size) {
|
||||
const dashWidth = 4.0;
|
||||
const dashSpace = 4.0;
|
||||
final paint = Paint()..color = color..strokeWidth = 1..style = PaintingStyle.stroke;
|
||||
double x = 0;
|
||||
while (x < size.width) { canvas.drawLine(Offset(x, 0), Offset(x + dashWidth, 0), paint); x += dashWidth + dashSpace; }
|
||||
|
||||
@@ -13,7 +13,6 @@ import '../../models/data_models.dart';
|
||||
import '../../utils/toast_util.dart';
|
||||
import '../../utils/image_path_helper.dart';
|
||||
import '../../widgets/genre_selector_page.dart';
|
||||
import '../../widgets/text_input_panel.dart';
|
||||
import '../../widgets/duration_picker.dart';
|
||||
import '../../widgets/alternate_titles_dialog.dart';
|
||||
import '../../widgets/app_overlay.dart';
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import 'dart:io';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import '../../models/data_models.dart';
|
||||
|
||||
@@ -6,7 +6,6 @@ import 'package:package_info_plus/package_info_plus.dart';
|
||||
import '../providers/app_provider.dart';
|
||||
import '../utils/user_prefs.dart';
|
||||
import 'package:flutter_svg/flutter_svg.dart';
|
||||
import 'reviewed_stamp_icon.dart';
|
||||
import '../pages/explore/encounter_page.dart';
|
||||
import '../pages/explore/stroll_page.dart';
|
||||
import '../pages/explore/reviewed_page.dart';
|
||||
|
||||
Reference in New Issue
Block a user