'How do I hide this message in the Flutter console - ViewPostIme pointer 0

Everytime I tap the screen of my device, I see this message in the Flutter console

D/ViewRootImpl@38eee14[MainActivity]( 7994): ViewPostIme pointer 0

followed by

D/ViewRootImpl@38eee14[MainActivity]( 7994): ViewPostIme pointer 1

These messages crowd the console and get in the way of reading actual important logs, so is there a way to get rid of them?



Solution 1:[1]

I did it with

flutter run | grep -v "D/ViewRootImpl"

Solution 2:[2]

In VS Code, you can apply this search filter in the Debug Console:

!ViewPostIme

You can add more filters seperated by a comma:

!ViewPostIme,!ViewRootImpl

The '!' before a phrase excludes logs where the phrase occurs.

Example:

enter image description here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 mancvso
Solution 2 Sainath A