Giter VIP home page Giter VIP logo

Comments (3)

Pyozer avatar Pyozer commented on August 29, 2024

Hi, I tried using the example code of this package and it works fine.
I defined a color in the canvasColor property of the theme of my MaterialApp, and I defined pageColor with Colors.transparent (or even just removed the pageColor property), and it works.

Can you show me your code?

from introduction_screen.

frankenten13 avatar frankenten13 commented on August 29, 2024

I put my backgournd image in Stack, but not working, can you help me.

const pageDecoration = const PageDecoration(
      titleTextStyle: TextStyle(fontSize: 28.0, fontWeight: FontWeight.w700),
      bodyTextStyle: bodyStyle,
      descriptionPadding: EdgeInsets.fromLTRB(16.0, 0.0, 16.0, 16.0),
      pageColor: Colors.transparent,
      imagePadding: EdgeInsets.zero,
    );
return Stack(
      children: <Widget>[
        Container(
          child: _buildImage('img1'), <-- My Background
        ),
        IntroductionScreen(
          key: introKey,
          pages: [
            PageViewModel(
              title: "Fractional shares",
              body:
              "Instead of having to buy an entire share, invest any amount you want.",
              image: _buildImage('img1'),
              decoration: pageDecoration,
            ),
           PageViewModel(),
           PageViewModel(),
          ....

from introduction_screen.

Pyozer avatar Pyozer commented on August 29, 2024

Hello @frankenten13, sorry I've just seen your reply.. 1year later :/
I hope you find the solution ^^
On my first reply I forgot that there is a param globalBackgroundColor. By settings Colors.transparent you will have a full transparent IntroductionScreen, so you can set an image as background, like your previous code.

from introduction_screen.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.