part of book_category;


class BookCategoryPage extends StatefulWidget {
  final List <ChapterModel> chapters;
  const BookCategoryPage({
    Key? key,
    required this.chapters
  }) : super(key: key);

  @override
  State<BookCategoryPage> createState() => _BookCategoryPageState();
}

class _BookCategoryPageState extends State<BookCategoryPage> {
  @override
  Widget build(BuildContext context) {
    return Column(
      children: [
        Expanded(
          child: ListView.builder(
              itemBuilder:(BuildContext context, int index){
                return BuildItem(model: widget.chapters[index],);
              },
              itemCount: widget.chapters.length,
          ),
        ),
      ],
    );
  }
}
