Comments (4)
I will take a look, thank you.
from flutter-expandable.
@aryzhov i think it comes from line 458
return builder(context, collapsed, buildBody(expanded));
and line 461
collapsed: collapsed,
maybe u missed buildBody for collapsed object, i can make a pull if u will
flutter-expandable/lib/expandable.dart
Line 458 in 6d33499
flutter-expandable/lib/expandable.dart
Line 461 in 6d33499
from flutter-expandable.
The current behavior is by design. The parameter tapBodyToCollapse
works only for collapsing, not for expanding. ExpandablePanel has an icon that is supposed to be used for expansion. Optionally, you may use tapHeaderToExpand
to extend the expansion trigger to the header. Extending this to the body would not yield better usability as the user would not know that clicking on the body would expand it. In addition, if your collapsed body is long enough, it might impact scrolling where the user accidentally expands the body by clicking on it.
The reason tapBodyOnCollapse
exists is for cases when the expanded body occupies the entire screen and there's no desire to add a button that collapses it.
If you still wish to implement this behavior, simply wrap your expanded body into ExpandableButton
.
from flutter-expandable.
I added this feature to version 4.1.0 that has been released. You can specify tabBodyToExpand: true
in the theme.
from flutter-expandable.
Related Issues (20)
- How to implement a "Should Show Expand" method?
- How to set the initial state to expanded? HOT 1
- Is there any methods to create nested ExpandablePanels (for example like with ExpandedTile)
- Logging when expand and collapsed with too much child
- How does the icon of each item change direction when I click on each item separately?
- iOS - overlapped text HOT 2
- Opaque HitTestBehavior option for GestureDetector when useInkWell is false
- Expanded At First HOT 1
- Dart not supporting your "expanded" getter and setter method overloading.
- Example not compiling
- dismiss keyboard when click on expand/collapse icon or header
- Remember if the panel was expanded. HOT 2
- bug on changing the orientation of the screen
- Actively maintained? HOT 1
- how to set margin bottom, it's too big without any reason
- how to use this in gridview?
- Expand arrow is dark when default dark theme HOT 2
- huge performance issue HOT 1
- Remove splash HOT 1
- ExpandableController toggle crash issue caused by impeller in iOS
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter-expandable.