mirror of
https://github.com/kodjodevf/mangayomi.git
synced 2026-04-23 01:22:58 +00:00
- Introduced `TransitionViewPaged` and `TransitionViewVertical` widgets to handle chapter transitions. - Created `ChapterTransitionPage` widget to display transition information between chapters. - Updated reader view logic to incorporate transition pages when navigating chapters. - Enhanced `UChapDataPreload` model to support transition states and next chapter information. feat(localization): add chapter transition messages in multiple languages fix(dependencies): update Dart SDK and dependencies - Updated Dart SDK constraint to ^3.8.0. - Changed `epubx` dependency to use the latest version from GitHub.
23 lines
701 B
Dart
23 lines
701 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
|
import 'package:mangayomi/modules/manga/reader/reader_view.dart';
|
|
import 'package:mangayomi/modules/manga/reader/widgets/chapter_transition_page.dart';
|
|
|
|
class TransitionViewPaged extends ConsumerWidget {
|
|
final UChapDataPreload data;
|
|
|
|
const TransitionViewPaged({super.key, required this.data});
|
|
|
|
@override
|
|
Widget build(BuildContext context, WidgetRef ref) {
|
|
if (!data.isTransitionPage) {
|
|
return const SizedBox.shrink();
|
|
}
|
|
|
|
return ChapterTransitionPage(
|
|
currentChapter: data.chapter!,
|
|
nextChapter: data.nextChapter,
|
|
mangaName: data.mangaName ?? '',
|
|
);
|
|
}
|
|
}
|