Skip to content

Commit

Permalink
Update comic_reader.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
appdevelpo committed Dec 11, 2023
1 parent 5c4b8fe commit 61457a2
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions lib/views/pages/watch/reader/comic/comic_reader.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import 'dart:io';

import 'package:fluent_ui/fluent_ui.dart';
import 'package:get/get.dart';
import 'package:miru_app/models/extension.dart';
Expand All @@ -7,7 +9,6 @@ import 'package:miru_app/controllers/watch/comic_controller.dart';
// import 'package:miru_app/views/pages/watch/reader/comic/comic_zoom.dart';
import 'package:miru_app/views/widgets/watch/comic_view.dart';
import 'package:miru_app/data/services/extension_service.dart';
import 'package:miru_app/views/widgets/platform_widget.dart';
import 'package:window_manager/window_manager.dart';

class ComicReader extends StatefulWidget {
Expand Down Expand Up @@ -60,22 +61,21 @@ class _ComicReaderState extends State<ComicReader> {

@override
Widget build(BuildContext context) {
return PlatformBuildWidget(
androidBuilder: (context) {
return ReaderView<ComicController>(
widget.title,
content: Center(
child: ComicReaderContent(widget.title),
),
buildSettings: (context) => ComicReaderSettings(widget.title),
);
},
desktopBuilder: (context) => ReaderView<ComicController>(
widget.title,
content: DragToMoveArea(
child: ComicReaderContent(widget.title),
),
buildSettings: (context) => ComicReaderSettings(widget.title),
));
if (Platform.isAndroid) {
return ReaderView<ComicController>(
widget.title,
content: Center(
child: ComicReaderContent(widget.title),
),
buildSettings: (context) => ComicReaderSettings(widget.title),
);
}
return ReaderView<ComicController>(
widget.title,
content: DragToMoveArea(
child: ComicReaderContent(widget.title),
),
buildSettings: (context) => ComicReaderSettings(widget.title),
);
}
}

0 comments on commit 61457a2

Please sign in to comment.