flutter-expandable icon indicating copy to clipboard operation
flutter-expandable copied to clipboard

tapBodyToExpand/Collapse not working with containers

Open jstride opened this issue 5 years ago • 1 comments

Collapsed/Expanded is in a container but only the header can expand/collapse

                          theme: ExpandableThemeData(
                            hasIcon: true,
                            useInkWell: true,
                            tapBodyToCollapse: true,
                            tapBodyToExpand: true,
                            tapHeaderToExpand: true,
                          ),
                          header: ListTile(
                            leading: CircleAvatar(
                              backgroundColor: Colors.blue,
                              child: Text(
                                  'AB',
                            ),
                            title: Text('Title',
                                overflow: TextOverflow.ellipsis, maxLines: 1),
                            subtitle: Text('SubTitle'),
                          ),
                          collapsed: Container(
                              padding: EdgeInsets.fromLTRB(16, 0, 16, 16),
                              child: Text(longText,
                                  maxLines: 5,
                                  overflow: TextOverflow.ellipsis,
                                  style: TextStyle(
                                    height: 2,
                                  ))),
                          expanded: Container(
                              padding: EdgeInsets.fromLTRB(16, 0, 16, 16),
                              child: Text(longText,
                                  style: TextStyle(
                                    height: 2,
                                  ))),
                        ),```

jstride avatar Sep 01 '20 22:09 jstride

Also related to #50

cmorsucci avatar Sep 04 '20 07:09 cmorsucci