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

Pageable Page View is a project developed to facilitate pagination operations in Flutter.

pageable_page_view Flutter package pageable_page_view is developed to facilitate pagination operations in Flutter applications.

Features #

-list: List of items to paginate.

-itemPerPage: Number of items per page.

-initialPage: Index of the page to show initially.

-child: Widget that contains another Widget.

-shrinkWrap: Whether the ListView should shrink-wrap its content.

-scrollDirection: The scrolling direction of the ListView.

-physics: The physics of the ListView.

-titleDisplay: Function that returns the text to display for the title.

-subTitleDisplay: Function that returns the text to display for the subtitle.

-itemDisplay: Function that returns the text to display for the item.

-extraAlan: Extra field.

-prefixIcon: Leading icon.

-suffixIcon: Trailing icon.

-listTileOnTap: Function that will be called when ListTile is tapped.

pageable

Getting started #

import 'package:pageable_page_view/pageable_page_view.dart';

Usage #

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

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  final List<dynamic> itemList = [
    // List items will be defined here.
  ];

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: Text('Pageable Page View Example'),
        ),
        body: Column(
          children: [
            Expanded(
              child: PageablePageView<dynamic>(
                list: itemList,
                itemPerPage: 10,
                initialPage: 0,
                titleDisplay: (item) => item.title,
                subTitleDisplay: (item) => item.subtitle,
                itemDisplay: (item) => item.displayText,
                prefixIcon: Icon(Icons.arrow_back),
                suffixIcon: Icon(Icons.arrow_forward),
                listTileOnTap: () {
                  // Function to be called when ListTile is tapped.
                },
              ),
            ),
          ],
        ),
      ),
    );
  }
}

Additional information #

If you have any questions or feedback, please feel free to contact us. Enjoy using it! Contact Email: iremtasci0629@gmail.com

5
likes
0
points
38
downloads

Publisher

unverified uploader

Weekly Downloads

Pageable Page View is a project developed to facilitate pagination operations in Flutter.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on pageable_page_view