flutter_vcard

一个垂直滑动的卡片堆叠控件

demo_gif

Usage

To use this plugin, add flutter_vcard as a dependency in your pubspec.yaml file.

Example

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

    VCardView(
        size: Size(width, height),
        controller: controller,
        itemCount: colors.length,
        itemBuild: (context, index) {
          return Card(
            child: Container(color: colors[index]),
          );
        },
        endCallback: () {
          print('---->end');
        },
        indexChangeCallback: (index) {
          print('changed--->$index');
        },
        nextCallback: (index) {
          print('next--->$index');
        },
        previousCallback: (index) {
          print('previous--->$index');
        },
    );

Libraries

flutter_vcard