-
-
Notifications
You must be signed in to change notification settings - Fork 32
Closed
Description
1.The height is uncertain, with white edges above and below
`
Container(
width: Get.width,
height: Get.height,
color: Colors.black,
child: Center(
child: ScreenRecorder(
controller: screenRecorderController,
width: uiImage.width.toDouble(),
height: uiImage.height.toDouble(),
child: Stack(
children: [
Center(
child: Image.file(widget.file,width: uiImage.width.toDouble(),height: uiImage.height.toDouble(),),
),
Positioned(
top: y,
left: x,
child: GestureDetector(
onPanUpdate: (DragUpdateDetails e) {
setState(() {
x += e.delta.dx;
y += e.delta.dy;
});
},
onPanEnd: (DragEndDetails e){
print(e.velocity);
},
child: Text(widget.text,style: TextStyle(color: Colors.red,fontSize: 30),),
),
),
],
),
),
),
)
`
Metadata
Metadata
Assignees
Labels
No labels