老孟导读:此文讲解3个酷炫的3D动画效果。 下面是要实现的效果: Flutter 中3D效果是通过 Transform 组件实现的,没有变换效果的实现: class TransformDemo extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: Text( '3D 变换Demo' ), ), body: Container( alignment: Alignment.center, color: Colors.white, child: Text( '3D 变换Demo' ), ), ); } } 通过 GestureDetector 组件添加滑动事件监听: @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: Text( '3D 变换Demo' ), ), body: GestureDetector( onPanUpdate: (details) { print ( ' $details ' ); }, child: Container( alignment: Alignment