page_view_360

Last updated:

0 purchases

page_view_360 Image
page_view_360 Images
Add to Cart

Description:

page view 360

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,
),
),
);
},
),
);
}
}
copied to clipboard
Additional information #
Contribution or any suggestion are warm welcome. Please keep eay on git repo for any kind of information update.

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.