selecting space selects community

This commit is contained in:
hannathkadher
2024-11-19 15:32:33 +04:00
parent 3a333188f8
commit a464788e88
2 changed files with 27 additions and 21 deletions

View File

@ -3,15 +3,20 @@ import 'package:syncrow_web/common/custom_expansion_tile.dart';
class SpaceTile extends StatefulWidget {
final String title;
final bool isSelected;
final bool initiallyExpanded;
final ValueChanged<bool> onExpansionChanged;
final List<Widget>? children;
final Function() onItemSelected;
const SpaceTile({
super.key,
required this.title,
required this.initiallyExpanded,
required this.onExpansionChanged,
required this.onItemSelected,
required this.isSelected,
this.children,
});
@ -34,6 +39,7 @@ class _SpaceTileState extends State<SpaceTile> {
isSelected: false,
title: widget.title,
initiallyExpanded: _isExpanded,
onItemSelected: widget.onItemSelected,
onExpansionChanged: (bool expanded) {
setState(() {
_isExpanded = expanded;