ripple_image_button 1.0.7 copy "ripple_image_button: ^1.0.7" to clipboard
ripple_image_button: ^1.0.7 copied to clipboard

RippleImageButton has ripple effect on click. Image widget can not ripple effect on wrapped InkWell Widget. so I tried to Container Widget and could be have ripple effect on click

example/lib/main.dart

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

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

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: Scaffold(
        body: Center(
          child: RippleImageButton(
            image: const AssetImage(
                'example/images/google_sign_image.png'), // or NetwrokImage
            width: 200,
            height: 50,
            onTap: () {},

            /// borderRadius: [double] default = 0.0
            /// fit : [BoxFit] default = BoxFit.cover
            /// splashColor : [Color] default = null
          ),
        ),
      ),
    );
  }
}
2
likes
0
pub points
35%
popularity

Publisher

unverified uploader

RippleImageButton has ripple effect on click. Image widget can not ripple effect on wrapped InkWell Widget. so I tried to Container Widget and could be have ripple effect on click

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on ripple_image_button