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

interval is not working after adding images #13

Open
ghost opened this issue Aug 7, 2018 · 1 comment
Open

interval is not working after adding images #13

ghost opened this issue Aug 7, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented Aug 7, 2018

I added the image_carousel like mentioned in the stackoverflow post here with a List.

If I reconstruct the Widget with a new List the carousel is not going through all Images. Only the images were in the List before.
How can force the carousel to show also the added images?

`import 'package:flutter/material.dart';

import 'package:image_carousel/image_carousel.dart';

class ShowPictures extends StatelessWidget {
final List networkimages;

//Constructor to create this class
ShowPictures(this.networkimages) {
print('Image Carousel Widget Constructor');
}

@OverRide
Widget build(BuildContext context) {
// TODO: implement build
print('Image Carousel Widget build');
return new ImageCarousel(
networkimages,
interval: new Duration(seconds: 8),
);
}
}
`

@ghost
Copy link
Author

ghost commented Aug 7, 2018

if i scroll manually through the pictures the Widget is showing all pictures from the list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants