Comments (10)
It is possible with the latest version.
Just call:
_controller.visibility = true; //false
from rubber.
So in, say, the onPressed for a FAB:
onPressed: () {
_controller.visibility = true;
}
Is that right? Also, what would the proper values be to make Rubber mimic a ModalBottomSheet, where it appears at a set height and can be dismissed?
from rubber.
Exactly!
To make it mimic the ModalBottomSheet you can set the animationController as follows:
_controller = RubberAnimationController(
vsync: this,
lowerBound: 0.0,
upperBound: 0.5,
duration: Duration(milliseconds: 200)
);
and open it with
_controller.launchTo(AnimationState.expanded);
I'm probably simplify this mechanism in the next release.
from rubber.
Thank you, I'll try it out! Are you on twitter? Good place to announce releases
from rubber.
ok, I just tried it out, and swiping up on Rubber doesn't make it expand. Swiping down, however, does dismiss Rubber with a very quick red screen error.
from rubber.
Yes, I've just fixed the red screen issue in the newest version.
Swiping up shouldn't open the bottom sheet because it would prevent the lower layer from scrolling.
from rubber.
Yes, I'm on Twitter as @mattia_crovero.
Thanks for the advice!
from rubber.
from rubber.
In Google maps the swipe starts from the BottomNavigationView, I think that it is possible to reproduce it with rubber. It could be a nice feature for the library
from rubber.
Looking forward to updates! I followed you on twitter. If you're able to replicate the Google Maps sheet, I will be in awe haha.
from rubber.
Related Issues (20)
- height (depending on content)
- When I try to slide down, it prompts me to overflow the title height HOT 4
- bottom sheet Error on eject
- header and upperLayer The gap between HOT 1
- dragFriction is reversed
- No dismiss callback after user swipe down
- Bottom sheet is at wrong position after orientation change
- Flag to make sheet to not overflow its lower and upper bounds (strictier controller values range) HOT 1
- Dim lowerLayer when Rubber is active HOT 2
- Slow animation
- [HELP] Is it possible to cover the appbar when the rubber expands?
- context.ancestorStateOfType(...) is deprecated HOT 1
- Support flutter 2.0 HOT 2
- AnimationController.dispose() called more than once HOT 1
- Example app build failed
- Fast fling ignores the first drag events in upperLayer
- Null-Safe rubber 1.0.1 depends on NON-Null-Safe after_layout 1.0.7
- Make listeners work HOT 1
- Cannot collapse sheet with keyboard open
- RubberAnimationController status listener HOT 1
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 rubber.