Similar to getMarkers(). Maybe there's a way to make the markers code more generic to work for multiple attributes. We need a list of Headings and their rectangles such that we can attach custom widgets for headings. We will need to cap the headings to a certain string length. Using the attached widgets we can easily link character counters to the headings. Also the same data can be used to scroll to a heading.
Ideally we would have a generic method that can intercept any type or styling getElementsByAttirbute('h1') // ul, bold, etc. This method would be far more useful then just headings.
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.
Similar to
getMarkers()
. Maybe there's a way to make the markers code more generic to work for multiple attributes. We need a list of Headings and their rectangles such that we can attach custom widgets for headings. We will need to cap the headings to a certain string length. Using the attached widgets we can easily link character counters to the headings. Also the same data can be used to scroll to a heading.Ideally we would have a generic method that can intercept any type or styling
getElementsByAttirbute('h1')
// ul, bold, etc. This method would be far more useful then just headings.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.