infinity_page_view_astro

Last updated:

0 purchases

infinity_page_view_astro Image
infinity_page_view_astro Images
Add to Cart

Description:

infinity page view astro

infinity_page_view #
A Flutter infinity page view.

Showcase #

Usage #
Example: add the module to your project pubspec.yaml: #

dependencies:
...
infinity_page_view: ^1.0.0

copied to clipboard
And install it using flutter packages get on your project folder. After that, just import the module and use it:

import 'package:infinity_page_view/infinity_page_view.dart';

...

InfinityPageController infinityPageController = new InfinityPageController(initialPage: 0);
...


new SizedBox(
height: 300.0,
child: new InfinityPageView(
itemBuilder: (BuildContext context, int index) {
switch (index) {
case 0:
return new Image.network(
"http://via.placeholder.com/350x150",
fit: BoxFit.fill,
);
case 1:
return new Image.network(
"http://via.placeholder.com/250x100",
fit: BoxFit.fill,
);
}
return new Image.network(
"http://via.placeholder.com/288x188",
fit: BoxFit.fill,
);
},
itemCount: itemCount,
onPageChanged: (int index) {
setState(() {
label = "${index+1}/${itemCount}";
});
},
controller: infinityPageController,
),
),
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.