long1eu / long1eu/circle_indicator

Circles color are always white and not moving

Open
#7 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Dart
Stars
38
Forks
13
PR merge metrics
No merged PRs in 30d

Description

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: [
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();
}),
);
```

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing CircleIndicator with the PageView controller, page count, and _onPageChanged callback shown in the issue. Reproduce the report and inspect how the indicator reads page changes and applies the selected and unselected colors; done means the circles use the supplied colors and the selected circle follows the current page.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.