extended_sliver icon indicating copy to clipboard operation
extended_sliver copied to clipboard

No ripple effect when tapping

Open burhankhanzada opened this issue 4 years ago • 2 comments

there is no ripple effect when i press back button and actions

burhankhanzada avatar Oct 21 '21 12:10 burhankhanzada

simple runnable demo

zmtzawqlp avatar Oct 22 '21 02:10 zmtzawqlp

here is the running demo click any action button there is no visual effect like ripple that this button has been present which is default SliverAppbar do

main() => runApp(const App());

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: Scaffold(
          body: CustomScrollView(
            slivers: [
              ExtendedSliverAppbar(
                title: const Text('ExtendedSliverAppBar'),
                actions: Row(
                  children: [
                    IconButton(
                      icon: const Icon(Icons.search),
                      onPressed: () {},
                    ),
                    IconButton(
                      icon: const Icon(Icons.favorite),
                      onPressed: () {},
                    ),
                    IconButton(
                      icon: const Icon(Icons.more_vert),
                      onPressed: () {},
                    ),
                  ],
                ),
                background: Container(
                  height: 250,
                  color: Theme.of(context).primaryColor,
                ),
              ),
              SliverList(
                delegate: SliverChildListDelegate.fixed(
                  List.generate(
                    10,
                    (index) => ListTile(
                      title: Text('Item $index'),
                    ),
                  ),
                ),
              ),
            ],
          ),
        ),
      ),
    );
  }
}

burhankhanzada avatar Oct 23 '21 17:10 burhankhanzada