horizontal_card_pager 1.0.3
horizontal_card_pager: ^1.0.3 copied to clipboard

Flutter Android iOS Linux macOS web Windows

Use dynamic and beautiful card view pagers (horizontal direction) to help you create great apps.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'package:horizontal_card_pager/horizontal_card_pager.dart';
import 'package:horizontal_card_pager/card_item.dart';

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

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    List<CardItem> items = [
      IconTitleCardItem(
        text: "Alarm",
        iconData: Icons.access_alarms,
      ),
      IconTitleCardItem(
        text: "Add",
        iconData: Icons.add,
      ),
      IconTitleCardItem(
        text: "Call",
        iconData: Icons.add_call,
      ),
      IconTitleCardItem(
        text: "WiFi",
        iconData: Icons.wifi,
      ),
      IconTitleCardItem(
        text: "File",
        iconData: Icons.attach_file,
      ),
      IconTitleCardItem(
        text: "Air Play",
        iconData: Icons.airplay,
      ),
    ];

    return MaterialApp(
      home: Scaffold(
          body: Center(
              child: HorizontalCardPager(
        onPageChanged: (page) => print("page : $page"),
        onSelectedItem: (page) => print("selected : $page"),
        items: items,
      ))),
    );
  }
}
34
likes
100
pub points
79%
popularity

Use dynamic and beautiful card view pagers (horizontal direction) to help you create great apps.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

rlawjdxo88@gmail.com

License

BSD (LICENSE)

Dependencies

flutter

More

Packages that depend on horizontal_card_pager