8000 when the widget is scrollable, the highlight section goes off the screen · Issue #28 · tal-tech/flutter_intro · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

when the widget is scrollable, the highlight section goes off the screen #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
andydean565 opened this issue May 14, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@andydean565
Copy link
andydean565 commented May 14, 2021

first of all, great plugin.

just having an issue with a form which extents past the current view, the highlighted box is out of view with no option to scroll and just shows the back overlay.

my current fix is having a custom call-back in useAdvancedTheme which will scroll to the key before running 'onNext' but could be a good feature.

current solution

inside Intro instance

onTap: params.currentStepIndex == (params.stepCount - 1)
        ? () => {params.onFinish(), finishCallback()}
         : () async => {
              await nextCallback(params.currentStepIndex + 1),
              params.onNext(),
},

creating the intro instance with a function

intro = createIntro(nextCallback: (index) async {
      print('next callback');
      await Scrollable.ensureVisible(intro.keys[index].currentContext,
          duration: Duration(seconds: 1));
    }, finishCallback: () {
      print('finish callback');
      Scrollable.ensureVisible(context);
});
@andydean565 andydean565 changed the title when the widget is scrollable, the highlight section goes off the screem when the widget is scrollable, the highlight section goes off the screen May 14, 2021
@hellohejinyu hellohejinyu self-assigned this May 15, 2021
@hellohejinyu hellohejinyu added the enhancement New feature or request label May 15, 2021
@absar
Copy link
absar commented Jun 26, 2021

Having the same issue. I think there should be some way to provide maximum height for highlighted box, e.g. do not go beyond 60% screen height, or calculate the intro text and buttons height and make at least this much space available
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants
0