mirrored_repositories/lifeclass/lib/pages/content/lessons
import 'package:flutter/material.dart';
import 'package:lifeclass/classes/clsListItemAttributes.dart';
import 'ListItem.dart';

class ListBoxWrapper extends StatelessWidget {
  final List<clsListItemAttributes> listItemData;
  final bool isDarkMode;
  const ListBoxWrapper({super.key,required this.listItemData, required this.isDarkMode});
  @override
  Widget build(BuildContext context) {
    return Column(
      children:[ Padding(
        padding: EdgeInsets.all(10),
        child: Container(
          decoration: BoxDecoration(color: (isDarkMode?Colors.black26:Colors.grey),borderRadius: BorderRadius.circular(15)),
          child: Padding(
            padding: EdgeInsets.symmetric(vertical: 10.0),
            child: Column(
              children: [
                ListItem(listItemData: listItemData)
              ],
            ),
          ),
        ),
      ),
        SizedBox(height: 0,),
      ]
    );
  }
}
