20 lines
498 B
Dart
20 lines
498 B
Dart
import 'package:flutter/material.dart';
|
|
import '../widgets/epub_viewer.dart';
|
|
|
|
class EpubPage extends StatelessWidget {
|
|
final List<int> epubBytes;
|
|
final String courseName;
|
|
final int book_id;
|
|
|
|
const EpubPage({super.key, required this.courseName, required this.book_id, required this.epubBytes});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
appBar: AppBar(
|
|
title: Text(courseName),
|
|
),
|
|
body: EpubViewerPage(book_id: book_id),
|
|
);
|
|
}
|
|
} |