Skip to content

Circles color are always white and not moving #7

@fvisticot

Description

@fvisticot

The circle_indicator is correctly displayed but colors circles are always white and selected circle is not moving
Is something wrong with my code ?

return new Scaffold(
      appBar: new AppBar(title: new Text("Moods"),),
      body: new Container(
          padding: new EdgeInsets.only(top: 16.0,),
          decoration: new BoxDecoration(
              color: Colors.yellow
          ),
          child: new Stack(
              alignment: FractionalOffset.bottomCenter,
              children: <Widget>[
                new PageView.builder(
                  physics: new AlwaysScrollableScrollPhysics(),
                  controller: _controller,
                  itemCount: _pages.length,
                  itemBuilder: (BuildContext context, int index) {
                    return _pages[index];
                  },
                  onPageChanged: _onPageChanged,
                ),
                new Container(
                    margin: new EdgeInsets.only(
                      top: 16.0,
                      bottom: 16.0,
                    ),
                    child: new CircleIndicator(_controller, _pages.length,
                        8.0, Colors.blue, Colors.red)
                ),
              ]
          )),
      floatingActionButton: new FloatingActionButton(
          child: new Icon(Icons.add), onPressed: () {
        _displayAddMenu();
      }),
    );

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions