infinity_page_view 0.0.2 copy "infinity_page_view: ^0.0.2" to clipboard
infinity_page_view: ^0.0.2 copied to clipboard

outdated

A infinity page view .

infinity_page_view #

A Flutter infinity page view.

Usage #

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

    
    dependencies:
     ...
     infinity_page_view: ^0.0.2
    

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,
  ),
),
12
likes
0
pub points
70%
popularity

Publisher

unverified uploader

A infinity page view .

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on infinity_page_view