Open indeedshaw opened 1 week ago
see:https://github.com/flutter/flutter/issues/66087 Highlights need to be displayed in other ways?
Maybe your issue is related to the Flutter doctor output:
[!] Flutter (Channel stable, 3.19.5, on Microsoft Windows [版本 10.0.22631.3447], locale zh-CN)
! Warning: `flutter` on your path resolves to E:\Solfwares\SDK\flutter_3.7.12\bin\flutter, which is not
inside your current Flutter SDK checkout at E:\Solfwares\SDK\flutter_3.19.5. Consider adding
E:\Solfwares\SDK\flutter_3.19.5\bin to the front of your path.
! Warning: `dart` on your path resolves to E:\Solfwares\SDK\flutter_3.7.12\bin\dart, which is not inside
your current Flutter SDK checkout at E:\Solfwares\SDK\flutter_3.19.5. Consider adding
E:\Solfwares\SDK\flutter_3.19.5\bin to the front of your path.
I ran your code sample on Windows, and it seems to be working:
Maybe your issue is related to the Flutter doctor output:
[!] Flutter (Channel stable, 3.19.5, on Microsoft Windows [版本 10.0.22631.3447], locale zh-CN) ! Warning: `flutter` on your path resolves to E:\Solfwares\SDK\flutter_3.7.12\bin\flutter, which is not inside your current Flutter SDK checkout at E:\Solfwares\SDK\flutter_3.19.5. Consider adding E:\Solfwares\SDK\flutter_3.19.5\bin to the front of your path. ! Warning: `dart` on your path resolves to E:\Solfwares\SDK\flutter_3.7.12\bin\dart, which is not inside your current Flutter SDK checkout at E:\Solfwares\SDK\flutter_3.19.5. Consider adding E:\Solfwares\SDK\flutter_3.19.5\bin to the front of your path.
Yes,the display on the window is normal. I tested on a mobile device. Try this on a mobile device.I've modified the reproduction steps.
@indeedshaw I tried on Android 13 emulator and it seems to be working as intended:
https://github.com/flutter/flutter/assets/67046386/b0c66805-6e9f-4d55-be67-2d21230f529a
I can confirm @darshankawar's observation:
In my case, it happen with a short press.Maybe we can change the highlight color so we can see better. @darshankawar @nate-thegrate
https://github.com/flutter/flutter/assets/119829832/7ada1c29-05af-493d-bdd4-4cb5ce1515da
Thanks for the update. I re-ran the provided code sample and with short press it seems the reported behavior as replicable specially on mobile platform.
https://github.com/flutter/flutter/assets/67046386/b6f0665e-21cf-422a-a18b-4a684bc2919c
Maybe related https://github.com/flutter/flutter/issues/110300 ?
Thank you for your reply, This problem can be replicated not only in PageViews.I tried using GestureDector's onDobuleTap or some other input that is different from onTap and got the same results, they are probably related. Maybe like #66087, because _InkResponseState's _startNewSplash is already executed. Should I close the issue and wait for the progress of #110300?
Steps to reproduce
On Android 13 1.Use InkWell as the child of a PageView. 2.Tap InkWell Widget.
Expected results
Highlight working!
Actual results
InkHighlight does not draw.
Code sample
Code sample
```dart import 'package:flutter/material.dart'; void main() { runApp(const MyApp()); } class MyApp extends StatelessWidget { const MyApp({super.key}); @override Widget build(BuildContext context) { return MaterialApp( title: 'Flutter Demo', theme: ThemeData( colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple), useMaterial3: true, ), home: const MyHomePage(title: 'Flutter Demo Home Page'), ); } } class MyHomePage extends StatefulWidget { const MyHomePage({super.key, required this.title}); final String title; @override StateScreenshots or Video
Screenshots / Video demonstration
[Upload media here]Logs
Logs
```console [Paste your logs here] ```Flutter Doctor output
Doctor output
```console Doctor summary (to see all details, run flutter doctor -v): [!] Flutter (Channel stable, 3.19.5, on Microsoft Windows [版本 10.0.22631.3447], locale zh-CN) ! Warning: `flutter` on your path resolves to E:\Solfwares\SDK\flutter_3.7.12\bin\flutter, which is not inside your current Flutter SDK checkout at E:\Solfwares\SDK\flutter_3.19.5. Consider adding E:\Solfwares\SDK\flutter_3.19.5\bin to the front of your path. ! Warning: `dart` on your path resolves to E:\Solfwares\SDK\flutter_3.7.12\bin\dart, which is not inside your current Flutter SDK checkout at E:\Solfwares\SDK\flutter_3.19.5. Consider adding E:\Solfwares\SDK\flutter_3.19.5\bin to the front of your path. [√] Windows Version (Installed version of Windows is version 10 or higher) [!] Android toolchain - develop for Android devices (Android SDK version 34.0.0) ! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses [√] Chrome - develop for the web [√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.6.5) [!] Android Studio (version 3.6) X Unable to find bundled Java version. [√] Android Studio (version 2022.3) [√] Connected device (4 available) ```