Inside the method _removeTabCharacter() logic, when pressing shift + tab even though there aren't any tab char added. The logic is going to remove 4 chars before the charet. That's not what we intend. One possible solution to this is to verify if there are 4 whitespaces before the charet. If there are, apply the method logic, else do not.
Join on discord to get advice and help or follow us on YouTube Visual Coding to learn more about the architecture of Visual Editor and other Flutter apps.
Inside the method _removeTabCharacter() logic, when pressing shift + tab even though there aren't any tab char added. The logic is going to remove 4 chars before the charet. That's not what we intend. One possible solution to this is to verify if there are 4 whitespaces before the charet. If there are, apply the method logic, else do not.
Join on discord to get advice and help or follow us on YouTube Visual Coding to learn more about the architecture of Visual Editor and other Flutter apps.