Skip to content

How to close the tree once an element is tapped? Also the bottom is getting overflowed at the bottom, when I am using it inside a column. #4

@sm0223

Description

@sm0223
Below is the code I am using:
Column(
          crossAxisAlignment: CrossAxisAlignment.start,
          children: <Widget>[
            ListTile(...),
            DynamicTreeView(
              data: data,
              config: Config(
    
               parentTextStyle:  kTextGreyNormal.copyWith(color: kColorPrimaryBlue),
               rootId: "1",
               childrenPaddingEdgeInsets: EdgeInsets.symmetric(vertical: 5.0,horizontal: 5.0),
               parentPaddingEdgeInsets:  EdgeInsets.only(left: 10, top: 0, bottom: 0)),
               onTap: (key) {
                //TODO: Close the tree view to its original
                 Provider.of<ProductListViewModel>(context).getProductListFromCategoryId(key['id']);
               },
             ),
           ]
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions