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

retractedoutdated

A Package That Provides easy swip buttons with animations.

Buttons Swiper #

Buttons Swiper package lets you add a beautiful Buttons Swiper to your Flutter app.

Installation #

  1. Add the latest version of package to your pubspec.yaml (and rundart pub get):
dependencies:
  buttons_swiper: ^0.0.2
  1. Import the package and use it in your Flutter App.
import 'package:buttons_swiper/swiper.dart';

Example #

There are a number of properties that you can modify:

  • alignement
  • height
  • circleBorderWidth
  • circleBorderColor
  • onTap
  • firstIconsList
  • secondIconsList
  • loop
  • fade
  • startIndex
  • viewportFraction
  • scale

class SwiperTest extends StatelessWidget {
  const SwiperTest({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: swiper(
          onTap: (index) {
            // print(index);
          },
          height: 100,
          alignement: Alignment.bottomCenter,
          circleBorderColor: Colors.white,
          secondIconsList: [
            Icon(
              Icons.monetization_on_outlined,
              color: Colors.red,
              size: 70,
            ),
            Icon(
              Icons.settings_outlined,
              color: Colors.red,
              size: 70,
            ),
            Icon(
              Icons.phone,
              color: Colors.red,
              size: 70,
            ),
          ],
          firstIconsList: [
            Icon(
              Icons.monetization_on,
              color: Colors.white,
              size: 50,
            ),
            Icon(
              Icons.settings,
              color: Colors.white,
              size: 50,
            ),
            Icon(
              Icons.phone_enabled,
              color: Colors.white,
              size: 50,
            )
          ],
        ),
      ),
    );
  }
}

Next Goals #

  • Add More Animations.
  • Add More Controlls.
3
likes
0
pub points
0%
popularity

Publisher

unverified uploader

A Package That Provides easy swip buttons with animations.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

animated_icon_button, card_swiper, flutter, get

More

Packages that depend on buttons_swiper