Repository: flutter
Issue: FilterChip / RawChip checkmark glitches on setstate.
Labels: c: regression,framework,f: material design,has reproducible steps,P3,found in release: 3.3,found in release: 3.6,team-design,triaged-design

## Description
There is a semi-transparent circle around the checkmark in a Chip widget, which darkens the color of the avatar behind it.
In flutter 2.10.5 it is always there, in flutter 3.3.x (on android & windows) it will fade in and out repeatedly.

The type of parent of the Chip widget influences whether this happens or not.

## Steps to Reproduce

- Create a flutter app with Flutter 3.3.x
- Use the example below, or place a `FilterChip` / `RawChip` with a checkmark and a CircleAvatar inside a Listview.
- Run the app on Android or windows.
- Trigger `SetState` with a button.
- The color around the checkmark changes on each button press.

Do the same with Flutter 2.10.5, and the color stays the same.

- On android I can replicate this both on a physical device and emulator.
- On windows the issue is the same, but mouse hover also seems to have an effect.
- I can't replicate this on web with chrome, it behaves the same on 2.10.5 and 3.3.8
- I did not test this on iOS yet.

This isn't exclusive to having ListView as a parent, but it is an easy example.

**Expected results:** <!-- what did you want to see? -->
The color around the checkmark stays the same when it is not interacted with.


**Actual results:** 
The color around the checkmark changes every time a setstate is triggered.

<details>
<summary>Example app (used in the videos) with 2 chips, one inside a row and one inside a ListView.</summary>

```dart
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({Key? key, required this.title}) : super(key: key);

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  int _counter = 0;

  bool _chipSelected = false;
  bool _chip2Selected = false;

  void _incrementCounter() {
    setState(() {
      _counter++;
    });
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.spaceAround,
          crossAxisAlignment: CrossAxisAlignment.center,
          children: <Widget>[
            FilterChip(
              elevation: 4,
              backgroundColor: Colors.white,
              selectedColor: Colors.blue,
              avatar: CircleAvatar(
                backgroundColor:
                    _chipSelected ? Colors.red : Colors.transparent,
                child: _chipSelected
                    ? null
                    : const Icon(Icons.access_alarm, color: Colors.red),
              ),
              label: Text(
                "test",
                style:
                    TextStyle(color: _chipSelected ? Colors.white : Colors.red),
              ),
              selected: _chipSelected,
              onSelected: (bool newValue) {
                setState(() {
                  _chipSelected = newValue;
                });
              },
            ),

            //chip inside a listview, is buggy
            SizedBox(
              height: 30,
              child: ListView(
                  shrinkWrap: true,
                  scrollDirection: Axis.horizontal,
                  children: [
                    FilterChip(
                      elevation: 4,
                      backgroundColor: Colors.white,
                      selectedColor: Colors.blue,
                      avatar: CircleAvatar(
                        backgroundColor:
                            _chip2Selected ? Colors.red : Colors.transparent,
                        child: _chip2Selected
                            ? null
                            : const Icon(Icons.access_alarm, color: Colors.red),
                      ),
                      label: Text(
                        "test",
                        style: TextStyle(
                            color: _chip2Selected ? Colors.white : Colors.red),
                      ),
                      selected: _chip2Selected,
                      onSelected: (bool newValue) {
                        setState(() {
                          _chip2Selected = newValue;
                        });
                      },
                    ),
                  ]),
            ),
            const Text(
              'Text',
            ),
            Text(
              '$_counter',
              style: Theme.of(context).textTheme.headline4,
            ),
          ],
        ),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: _incrementCounter,
        tooltip: 'Increment',
        child: const Icon(Icons.add),
      ),
    );
  }
}


```

</details>

<details>
  <summary>Logs</summary>

```
flutter analyze
Analyzing test...                                                       
No issues found! (ran in 6.0s)
```


```
flutter doctor -v
[√] Flutter (Channel stable, 3.3.8, on Microsoft Windows [Version 10.0.19044.2251], locale en-NL)
    • Flutter version 3.3.8 on channel stable at C:\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 52b3dc25f6 (2 weeks ago), 2022-11-09 12:09:26 +0800
    • Engine revision 857bd6b74c
    • Dart version 2.18.4
    • DevTools version 2.15.0

[√] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at C:\Users\User\AppData\Local\Android\sdk
    • Platform android-33, build-tools 33.0.0
    • Java binary at: C:\Program Files\Android\Android Studio1\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.12+7-b1504.28-7817840)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.7.7)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.7.30621.155
    • Windows 10 SDK version 10.0.18362.0

[√] Android Studio (version 2021.2)
    • Android Studio at C:\Program Files\Android\Android Studio1
    • 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+7-b1504.28-7817840)

[!] Android Studio (version 4.1)
    • Android Studio at C:\Program Files\Android\Android Studio
    • 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
    X Unable to determine bundled Java version.
    • Try updating or re-installing Android Studio.

[√] VS Code (version 1.73.1)
    • VS Code at C:\Users\User\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.52.0

[√] VS Code, 64-bit edition
    • VS Code at C:\Program Files\Microsoft VS Code
    • Flutter extension version 3.52.0

[√] Connected device (5 available)
    • SM G780G (mobile)            • RF8R8021WSR   • android-arm64  • Android 12 (API 31)
    • sdk gphone64 x86 64 (mobile) • emulator-5554 • android-x64    • Android 13 (API 33) (emulator)
    • Windows (desktop)            • windows       • windows-x64    • Microsoft Windows [Version 10.0.19044.2251]
    • Chrome (web)                 • chrome        • web-javascript • Google Chrome 94.0.4606.81
    • Edge (web)                   • edge          • web-javascript • Microsoft Edge 87.0.664.75

[√] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.
```

</details>

## Videos
These are screen captures that  shows: `windows` - `chrome` - `android emulator` on both flutter 3.3.8 and 2.10.5.

https://user-images.githubusercontent.com/11444698/204150970-8f0095ac-319c-488e-8b07-8469155c8c02.mp4


https://user-images.githubusercontent.com/11444698/204151099-a2132509-ca0b-4745-a8e7-93736a8660b9.mp4