-
Notifications
You must be signed in to change notification settings - Fork 20
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
How to get current index value? #21
Comments
Sorry, I am not able to understand your question. |
Hi Marc,
Hope I am clearer now ? |
Ok:
|
Hi Marc, |
Hi,
I have tried to use you library but now I am stucked here.
controller.addListener(() {
print("Now which index we are in "+controller.position.pixels.toString());
});
I have set listener I notice you cant get what is the current index which I have scroll too.
Another thing.
return (BuildContext context, int index) {
//
return Card(
child: Container(
//height: heights[index % 527],
color: (index == 0) ? Colors.red : Colors.green,
child: Center(child: Text('ITEM $index')),
),
);
};
How is this build I dont see any for loop or any list array here?
The text was updated successfully, but these errors were encountered: