page_view_360 1.0.0 copy "page_view_360: ^1.0.0" to clipboard
page_view_360: ^1.0.0 copied to clipboard

A flutter package to utilize PageView.builder(). This package allow to implement a quad directional Pageview. User are allow to scroll/slide pages in 4 direction.

An improved version of PageView.builder(). Scrollable in 4 direction

Features #

A PageView.builder() for vertical and Horizontal scrolling at same time Or you can say a quad directional slide-able PageView

Getting started #

TODO: List prerequisites and provide or point to information on how to start using the package.

Usage #

import 'package:page_view_360/page_view_360.dart';

class MyHomePage extends StatefulWidget {
  const MyHomePage({Key? key, required this.title}) : super(key: key);
  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  final colorsList = [
    Colors.blue,
    Colors.green,
    Colors.pink,
    Colors.purple,
    Colors.blueGrey,
    Colors.amber,
    Colors.deepOrange
  ];

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: ThreeSixtyPageView(
        itemCount: colorsList.length,
        // pageMargin: const EdgeInsets.all(16),
        itemBuilder: (context, index) {
          return Container(
            color: colorsList[index],
            alignment: Alignment.center,
            child: Text(
              '$index',
              style: const TextStyle(
                fontSize: 56,
              ),
            ),
          );
        },
      ),
    );
  }
}

Additional information #

Contribution or any suggestion are warm welcome. Please keep eay on git repo for any kind of information update.

8
likes
140
pub points
0%
popularity

Publisher

unverified uploader

A flutter package to utilize PageView.builder(). This package allow to implement a quad directional Pageview. User are allow to scroll/slide pages in 4 direction.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on page_view_360