Tag
“painting”
ClipRRect in Flutter: Rounded Corners Without the Visual Bugs
How ClipRRect clips children to rounded rectangles, when to prefer Container.borderRadius, clipBehavior trade-offs, and the patterns that avoid overflow and antialiasing artifacts.
November 4, 2026 AI Assistant
DecoratedBox in Flutter: Layering Custom Painted Styling
How DecoratedBox paints backgrounds and foregrounds with Decoration objects, positioning child vs foreground decoration, and when Container is the better wrapper.
November 4, 2026 AI Assistant
ShaderMask in Flutter: Painting Gradient Effects on Any Widget
Use ShaderMask to paint gradients, blends, and custom shader effects over any widget — gradient text, fading edges, and tinted icons.
November 2, 2026 AI Assistant