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

class SlidableWidget<T> extends StatelessWidget {
  final Widget child;
  const SlidableWidget({required this.child, Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) => Slidable(
        child: child,
        //actionPane: SlidableDrawerActionPane(),
        //actionExtentRatio: 0.2,
       // actions: <Widget>[
       //   Container()
          // IconSlideAction(
          //   caption: 'Archive',
          //   color: Colors.blue,
          //   icon: Icons.archive,
          //   onTap: () {},
          // ),
          // IconSlideAction(
          //   caption: 'delete',
          //   color: Colors.redAccent,
          //   icon: Icons.delete,
          //   onTap: () {},
          // )
        //],
        // secondaryActions: <Widget>[
        //   IconSlideAction(
        //     caption: 'add',
        //     color: Colors.blue,
        //     icon: Icons.add,
        //     onTap: () {},
        //   ),
        //   IconSlideAction(
        //     caption: 'read more',
        //     color: Colors.redAccent,
        //     icon: Icons.read_more,
        //     onTap: () {},
        //   )
        // ],
      );
}
