Closed Paroca72 closed 12 months ago
In the "missing" pattern the tap is never called.
you mean the style of the "missing" pattern is working but the onTap in recognizer not working?
final EasyRichTextPattern missing = EasyRichTextPattern(
targetString: r"#\b\w+\b",
matchWordBoundaries: false,
style: const TextStyle(
color: ThemesManager.templateErrorColor,
fontWeight: FontWeight.bold,
),
recognizer: TapGestureRecognizer()..onTap = () {
print("tap missing")
},
);
I just tested it. It works fine for me.
Please provide fluttter doctor
output.
Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel stable, 3.13.4, on Microsoft Windows [Version 10.0.22621.2283], locale en-US) [√] Windows Version (Installed version of Windows is version 10 or higher) [√] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [√] Chrome - develop for the web [!] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.7.3) X Visual Studio is missing necessary components. Please re-run the Visual Studio installer for the "Desktop development with C++" workload, and include these components: MSVC v142 - VS 2019 C++ x64/x86 build tools
! Doctor found issues in 1 category.
If for you its working probably is something inside my code. I'll investigate better.
Thanks for your time
I use a lower version of flutter. I will check it on 3.13.4.
the onTap
function works on my demo. Maybe there is a conflict between different widgets' TapGestureRecognizer.
Hello.. finally I got some free time to take a look to this issue. It seems the problem was the sortable ListView.
Very thanks for your support.
Hello,
Here my code:
I'm using the TemplateListTile inside a ListView. Both the patterns are proper drawn. In the "missing" pattern the tap is never called.
Also there is a way to have, on tap, the word that is matched?
Very thanks for your support and fantastic plugin. Sam