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

outdated

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 runflutter pub get):
dependencies:
  buttons_swiper: ^0.0.7
  1. Import the package and use it in your Flutter App.
import 'package:buttons_swiper/buttons_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(
          backgroundColor: Colors.orange,
          body: Container(
            child: swiper(
              onTap: (index) {
                print(index);
              },
              height: 100,
              alignement: Alignment.bottomCenter,
              circleBorderColor: Colors.white,
              secondIconsList: [
                Text(
                  "BUY",
                  style: TextStyle(
                    color: Colors.red,
                    fontWeight: FontWeight.w900,
                  ),
                  textScaleFactor: 2.0,
                ),
                Text(
                  "SETUP",
                  style: TextStyle(
                    color: Colors.red,
                    fontWeight: FontWeight.w900,
                  ),
                  textScaleFactor: 1.7,
                ),
                Text(
                  "CALL",
                  style: TextStyle(
                    color: Colors.red,
                    fontWeight: FontWeight.w900,
                  ),
                  textScaleFactor: 2.0,
                ),
              ],
              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

card_swiper, flutter, get

More

Packages that depend on buttons_swiper