Repository: flutter
Issue: [Android] Item clicks triggering navigation are still visible after popping the pushed route
Labels: platform-android,framework,f: routes,has reproducible steps,P2,team-android,triaged-android,found in release: 3.16,found in release: 3.18

### Is there an existing issue for this?

- [X] I have searched the [existing issues](https://github.com/flutter/flutter/issues)
- [X] I have read the [guide to filing a bug](https://flutter.dev/docs/resources/bug-reports)

### Steps to reproduce

1. Start the app from the snippet.
2. Click any list item or the button - a new page is pushed on top.
3. Pop the next page.

### Expected results

The controls are not in the 'pressed' state when coming back.

### Actual results

When coming back to the first page, the clicked item that caused navigation (any list item or the button) are in the 'pressed' state, and it disappears after a few moments. How long the second route is visible is irrelevant.
It looks like Flutter wants to show the user what was tapped, maybe?

This doesn't happen on iOS. I tried some other Android apps that have lists and I can't observe this behavior.

If this is an Android-specific behavior, can it be made configurable so that developers can disable it? In my app, with custom theming etc. it looks weird and I would like to disable it somehow.

### Code sample

<details><summary>Code sample</summary>

```dart
import 'dart:async';
import 'dart:math';

import 'package:flutter/material.dart';

Future<void> main() async {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      title: 'My app',
      home: _FirstPage(),
    );
  }
}

class _FirstPage extends StatelessWidget {
  const _FirstPage();

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: ListView(
        children: [
          ...List.generate(5, (index) {
            return ListTile(
              title: Text('Item #$index'),
              onTap: () => _navigate(context),
            );
          }),
          ElevatedButton(
            onPressed: () => _navigate(context),
            child: const Text('Navigate'),
          ),
        ],
      ),
    );
  }

  void _navigate(BuildContext context) {
    Navigator.of(context).push(
      MaterialPageRoute<void>(
        builder: (context) {
          return _SecondPage(
            color: Colors.primaries[Random().nextInt(Colors.primaries.length)],
          );
        },
      ),
    );
  }
}

class _SecondPage extends StatelessWidget {
  final Color color;

  const _SecondPage({required this.color});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(),
      body: Container(color: color),
    );
  }
}
```

</details>

### Flutter Doctor output

<details><summary>Doctor output</summary>

```console
[✓] Flutter (Channel stable, 3.16.2, on macOS 14.1.2 23B92 darwin-arm64, locale en-DE)
    • Flutter version 3.16.2 on channel stable at /Users/wujek/fvm/versions/3.16.2
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 9e1c857886 (4 days ago), 2023-11-30 11:51:18 -0600
    • Engine revision cf7a9d0800
    • Dart version 3.2.2
    • DevTools version 2.28.3

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/wujek/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.7+0-17.0.7b1000.6-10550314)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15A507
    • CocoaPods version 1.14.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2023.1)
    • 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 17.0.7+0-17.0.7b1000.6-10550314)

[✓] VS Code (version 1.84.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.78.0

[✓] Connected device (5 available)
    • Pixel 7 Pro (mobile)       • 2A141FDH300CP9                       • android-arm64  • Android 14 (API 34)
    • iPhone 14 (mobile)         • 00008110-000C2CD80281401E            • ios            • iOS 17.1.1 21B91
    • iPhone 15 Pro Max (mobile) • 16CA9407-0940-43A4-9CA9-49148BB429A3 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-17-0 (simulator)
    • macOS (desktop)            • macos                                • darwin-arm64   • macOS 14.1.2 23B92 darwin-arm64
    • Chrome (web)               • chrome                               • web-javascript • Google Chrome 119.0.6045.199

[✓] Network resources
    • All expected network resources are available.

• No issues found!
```

</details>