When using images with corner radius, we usually want to prevent the corner radius
from distorting when the image is scaled. This is when Scale9Grid comes to the rescue...
The implementation is not always clear, so here is a little example of Scale9Grid usage.
The Scale9Grid implementation can also be defined in the CSS style if needed.
Code can be found here.
Adding a macOS widget to a Flutter app using SwiftUI
7 months ago