-
-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The height is uncertain, with white edges above and below #26
Comments
Gif Add Text |
I have a hard time understanding what exactly your asking for or what your issue is. Can you please explain your issue in more detail? |
fit: BoxFit.cover now,I can fill it with this attribute.Can I leave the width and height unlocked? Make sure it will not change during recording. |
Sure, if that's what you want.
That's something you have to enforce. I don't don't know what will happen if it changes during recording though. In general, you have to enforce the size of the recording. The white borders come because that's what you're recording. If you don't want them, change the layout. |
It is too slow to generate files. Is there a solution? Or can you provide a view display first? |
Yep, I know.
I've prototyped a bit at #21, feel free to improve on that. I currently don't have time to work on it. If you happen to work on it, I would greatly appreciate a PR.
I don't know what you mean by that. |
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),),
),
),
],
),
),
),
)
`
The text was updated successfully, but these errors were encountered: