fix: resolve flutter analyze errors - remove leaked code, fix method calls, cleanup imports

This commit is contained in:
2026-03-23 16:55:54 +07:00
parent 4f202936fa
commit 71f1feaf98
33 changed files with 2851 additions and 224 deletions
+13 -3
View File
@@ -6,10 +6,20 @@ class RouteNames {
static const login = '/login';
static const search = '/search';
static const genres = '/genres';
static const novelDetail = '/novel';
static const reader = '/reader';
static const bookshelf = '/bookshelf';
static const comments = '/comments';
static const profile = '/profile';
static const settings = '/settings';
// Path-param based routes
static const novelDetailPath = '/novel/:id';
static const readerPath = '/reader/:chapterId';
static const commentsPath = '/comments/:novelId';
// Navigation helpers
static String novelDetail(String id) => '/novel/$id';
static String readerChapter(String chapterId) => '/reader/$chapterId';
static String commentsFor(String novelId, {String? chapterId}) {
final base = '/comments/$novelId';
return chapterId != null ? '$base?chapterId=$chapterId' : base;
}
}