Repository: flutter
Issue: Ink background not working in a CustomScrollView with animation.
Labels: framework,a: animation,f: material design,has reproducible steps,P3,found in release: 3.0,found in release: 3.1,team-design,triaged-design

<!-- Thank you for using Flutter!

     If you are looking for support, please check out our documentation
     or consider asking a question on Stack Overflow:
      * https://flutter.dev/
      * https://api.flutter.dev/
      * https://stackoverflow.com/questions/tagged/flutter?sort=frequent

     If you have found a bug or if our documentation doesn't have an answer
     to what you're looking for, then fill out the template below. Please read
     our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->

## Steps to Reproduce
When `Ink` in  a `CustomScrollView` with animation, the ink background not working.

<!-- Please include full steps to reproduce so that we can reproduce the problem. -->

Click the `Click me to switch status` tile to reproduce.

See [demo](https://github.com/sososdk/fuutter_ink_background_color_issue) or flowing code.

<details>
  <summary>Code sample</summary>

```dart
Scaffold(
  appBar: AppBar(
    // Here we take the value from the MyHomePage object that was created by
    // the App.build method, and use it to set our appbar title.
    title: Text(widget.title),
  ),
  body: CustomScrollView(
      // Center is a layout widget. It takes a single child and positions it
      // in the middle of the parent.
      slivers: [
        SliverToBoxAdapter(
          child: Ink(
            color: Colors.amber,
            child: Column(
              children: [
                GestureDetector(
                  onTap: () {
                    setState(() => isExpanded = !isExpanded);
                  },
                  child: const ListTile(
                    title: Text('Click me to switch status'),
                  ),
                ),
                const ListTile(title: Text('2')),
                ExpandSection(
                    isExpanded: isExpanded,
                    child: Column(
                      children: const [
                        ListTile(title: Text('3')),
                        ListTile(title: Text('4')),
                        ListTile(title: Text('5')),
                        ListTile(title: Text('6')),
                      ],
                    )),
              ],
            ),
          ),
        ),
      ]),
)
```

</details>

<details>
  <summary>Expected results:</summary>

![flutter_02](https://user-images.githubusercontent.com/46806014/185828161-2d187c73-33eb-49de-b9b3-e7b683028d60.png)

</details>


</details>

<details>
  <summary>Actual results:</summary>

![flutter_01](https://user-images.githubusercontent.com/46806014/185828113-6c5d0854-492d-4722-8c04-90d630017613.png)

</details>


<details>
  <summary>flutter doctor -v</summary>

```
[✓] Flutter (Channel stable, 3.0.5, on macOS 11.5.1 20G80 darwin-x64, locale zh-Hans-CN)
    • Flutter version 3.0.5 at /Users/chengshuai/.asdf/installs/flutter/3.0.5-stable
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision f1875d570e (6 weeks ago), 2022-07-13 11:24:16 -0700
    • Engine revision e85ea0e79c
    • Dart version 2.17.6
    • DevTools version 2.12.2

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0-rc3)
    • Android SDK at /Users/chengshuai/Library/Android/sdk
    • Platform android-33, build-tools 33.0.0-rc3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • CHROME_EXECUTABLE = /Users/chengshuai/google-chrome-unsafe

[✓] Android Studio (version 2021.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)

• No issues found!
```

</details>