Skip to content
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

[Bug] No dark background in web #7

Closed
krille-chan opened this issue Oct 27, 2020 · 3 comments
Closed

[Bug] No dark background in web #7

krille-chan opened this issue Oct 27, 2020 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@krille-chan
Copy link

First I would like to thank you for this awesome package. It makes creating intros for an app very easy.

I have tried to make an intro for a webapp too. It seems that there is no dark background, so the white text is impossible to read and the "continue" button is nearly impossible to tap.

I'm using the version 0.5.1 of Flutter_intro and Flutter 1.23.0 in Beta channel.

I have a workaround, by just wrapping the widgetbuilder into a container:

final Intro roomsPageIntro = Intro(
    stepCount: 6,
    padding: EdgeInsets.all(8),
    borderRadius: BorderRadius.all(Radius.circular(4)),
    widgetBuilder: (step) => Container(
      color: kIsWeb ? Colors.black.withOpacity(0.5) : Colors.transparent,   // Workaround for web
      child: StepWidgetBuilder.useDefaultTheme(
        texts: [
          'Mit dieser Leiste bewegen Sie sich durch die Themen der App.',
          'Hier wählen Sie Unterkategorien zum Thema aus.',
          'Mit diesem Button fügen Sie neue Inhalte hinzu wie: Neue Chats mit Kollegen, neue Patienten, Anfragen, Todos, etc.',
          'Hier finden Sie alle Personen und Gruppen, mit denen Sie persönliche Chats haben.',
          'Hier finden Sie alle Patienten-zentrierten Chats.',
          'Hier finden Sie (bald) Zusatzangebote, wie Chat-Bots oder KI-Analysen.',
        ],
        btnLabel: 'Weiter',
        showStepLabel: true,
      )(step),
    ),
  );
@hellohejinyu hellohejinyu self-assigned this Oct 28, 2020
@hellohejinyu hellohejinyu added the bug Something isn't working label Oct 28, 2020
@hellohejinyu
Copy link
Member

Because the ColorFiltered used in the component does not fully support the Web, I want to see what method can be used to solve this problem

@hellohejinyu
Copy link
Member

flutter/flutter#69849

@hellohejinyu
Copy link
Member

image
It's works fine in Flutter 2.0+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants