Comments (5)
Hi, thanks for your nice comments. I think changing this will make harder to use AdvStory
. Fortunately, this feature can be "hacked" without changing the package. I did not limit the header and footer field sizes. You can use GestureDetector as footer. An example:
footer: GestureDetector(
onLongPressDown: (details) => print("long press"),
onLongPressCancel: () => print("long press cancel"),
onLongPressUp: () => print("long press up"),
onLongPress: () => print("long press"),
onTapUp: (details) => print("tap up"),
onVerticalDragEnd: (details) => print("vertical drag end"),
// Prevent hits from passing to the AdvStory in transparent areas.
child: AbsorbPointer(
child: SizedBox(
width: MediaQuery.of(context).size.width,
height: MediaQuery.of(context).size.height,
child: Align(
alignment: Alignment.bottomCenter,
child: Container(
width: MediaQuery.of(context).size.width,
height: 50,
color: Colors.orange,
),
),
),
),
)
This way you have to trigger the actions that are in the default story flow yourself. You can use
AdvStoryController
to trigger actions.
from advstory.
Not quite sure how to call your functions inside a custom wrapped GestureDetector(). Perhaps some documentation?
To see the controller usage you can check here and the link at the bottom of this page
from advstory.
Awesome! I want to add slow motion and swipe up to react/respond gestures. I'll see what I can do.
Would it be much work to essentially clone the Footer and call it CustomGesture or Overlay and make it an option along with Header and Footer? That way, you don't have to "hack" anything and you can also use the header/footer to place tappable links etc without fuss on top of the Gesture arena.
from advstory.
You're right, I'll add that to the roadmap as a priority. For now, you can use the hack way as a workaround.
from advstory.
Awesome!
from advstory.
Related Issues (20)
- Update Example Stories & JSON HOT 4
- How to update story content dynamically HOT 5
- AdvStoryController throws exception when jumpTo called on trayTap event HOT 3
- [BUG] Content Skip HOT 1
- Help wanted HOT 3
- onSlideChanged & onStoryChanged Functions HOT 3
- how to scroll up and down as instagram reels or tiktok videos ? HOT 1
- Sync Tray with Stories HOT 4
- Decouple to: Adv/Infinite PageView HOT 3
- AdvStory with Provider HOT 3
- 2022-10-16 10:00:45.237726-0700 Runner[66039:3355191] [VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(VideoError, Failed to load video: Cannot Open, null, null) HOT 1
- Change Background Color
- Bug in rtl app HOT 1
- Skip Viewed Content!
- Tweaking to behave a little more like an image gallery HOT 5
- safearea on Iphone 10++ HOT 3
- Stop Indicator When Story is Loading
- progress bar frozens while calling on api inside iconbuttom of footer
- WidgetStory AnimationController exception HOT 5
- Web / MacOS / Windows / Linux Support HOT 2
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 advstory.