第一步声明key : 类似于TextField的Texteditcontroller GlobalKey _key = GlobalKey(); 在需要获取position,size的widget中赋值key属性child: CustomPaint( key: _key, ...
確定! 回上一頁