Remove extra part after clipping in Flutter
问题 Clipping allows me to draw only the part which I want to show. How do I remove the extra part which is not drawn but still takes up space? The code import 'package:flutter/material.dart'; class ClipTut extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold( body: Center( child: Row( children: <Widget>[ ClipRect( clipper: CustomRect(), child: Container( decoration: BoxDecoration( border: Border.all(width: 4, color: Colors.black), color: Colors.blue, ), width: