fluttercandies / extended_sliver

A powerful extension library of Sliver, which include SliverToNestedScrollBoxAdapter, SliverPinnedPersistentHeader, SliverPinnedToBoxAdapter and ExtendedSliverAppbar.
MIT License
165 stars 29 forks source link

No ripple effect when tapping #8

Open burhankhanzada opened 2 years ago

burhankhanzada commented 2 years ago

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

zmtzawqlp commented 2 years ago

simple runnable demo

burhankhanzada commented 2 years ago

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'),
                    ),
                  ),
                ),
              ),
            ],
          ),
        ),
      ),
    );
  }
}