dynamic_paging_listview_widget 0.1.3 copy "dynamic_paging_listview_widget: ^0.1.3" to clipboard
dynamic_paging_listview_widget: ^0.1.3 copied to clipboard

A dynamic scrollable flutter ListView with pagination feature and flexible customization on UI Flutter Widget.

example/lib/main.dart

import 'package:example/dylist_as_widget_screen.dart';
import 'package:example/dylist_horizontal_screen.dart';
import 'package:example/dylist_screen.dart';
import 'package:example/test_list.dart';
import 'package:flutter/material.dart';

import 'list_horizontal_screen.dart';
import 'list_selectable_list_screen.dart';
import 'list_vertical_screen.dart';

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

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const MyHomePage(),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key});

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

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          // Here we take the value from the MyHomePage object that was created by
          // the App.build method, and use it to set our appbar title.
          title: const Text("Dynamic Paging"),
        ),
        bottomNavigationBar: Container(
          height: 10,
          color: Colors.blue,
        ),
        body: SingleChildScrollView(
          child: Column(
            crossAxisAlignment: CrossAxisAlignment.center,
            mainAxisAlignment: MainAxisAlignment.center,
            children: [
              const Center(
                child: Text(
                  "DyListView (New)",
                  style: TextStyle(
                      fontSize: 20,
                      color: Colors.black,
                      fontWeight: FontWeight.bold),
                ),
              ),
              const SizedBox(
                height: 5,
              ),
              Center(
                child: ElevatedButton(
                    onPressed: () {
                      Navigator.of(context).push(MaterialPageRoute(
                          builder: (context) => const DyListPage()));
                    },
                    child: const Text("Go To Dy List Page")),
              ),
              const SizedBox(
                height: 5,
              ),
              Center(
                child: ElevatedButton(
                    onPressed: () {
                      Navigator.of(context).push(MaterialPageRoute(
                          builder: (context) => const DyListAsWidgetPage()));
                    },
                    child: const Text("Go To Dy List Page as Widget")),
              ),
              const SizedBox(
                height: 20,
              ),
              Center(
                child: ElevatedButton(
                    onPressed: () {
                      Navigator.of(context).push(MaterialPageRoute(
                          builder: (context) => const DyListPageHorizontal()));
                    },
                    child: const Text("Go To (Horizontal)Dy List Page")),
              ),
              const SizedBox(
                height: 20,
              ),
              const Divider(
                color: Colors.black,
              ),
              const Center(
                child: Text(
                  "Prev Version (Soon will be replaced)",
                  style: TextStyle(
                      fontSize: 20,
                      color: Colors.black,
                      fontWeight: FontWeight.bold),
                ),
              ),
              Center(
                child: ElevatedButton(
                    onPressed: () {
                      Navigator.of(context).push(MaterialPageRoute(
                          builder: (context) => const VerticalListPage()));
                    },
                    child: const Text("Go To Vertical List Page")),
              ),
              const SizedBox(
                height: 20,
              ),
              Center(
                child: ElevatedButton(
                    onPressed: () {
                      Navigator.of(context).push(MaterialPageRoute(
                          builder: (context) => const HorizontalListPage()));
                    },
                    child: const Text("Go To Horizontal List Page")),
              ),
              const SizedBox(
                height: 20,
              ),
              Center(
                child: ElevatedButton(
                    onPressed: () {
                      Navigator.of(context).push(MaterialPageRoute(
                          builder: (context) => const SelectableListPage()));
                    },
                    child: const Text("Go To Selectable List Page")),
              ),
              const SizedBox(
                height: 20,
              ),
              Center(
                child: ElevatedButton(
                    onPressed: () {
                      Navigator.of(context).push(MaterialPageRoute(
                          builder: (context) => const TestListScreen()));
                    },
                    child: const Text("Test Screen")),
              ),
              const SizedBox(
                height: 20,
              ),
            ],
          ),
        ));
  }
}
2
likes
140
pub points
34%
popularity

Publisher

unverified uploader

A dynamic scrollable flutter ListView with pagination feature and flexible customization on UI Flutter Widget.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on dynamic_paging_listview_widget