Skip to content
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

Closed
tudosxxx opened this issue Dec 26, 2022 · 8 comments
Closed

The height is uncertain, with white edges above and below #26

tudosxxx opened this issue Dec 26, 2022 · 8 comments

Comments

@tudosxxx
Copy link

tudosxxx commented Dec 26, 2022

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),),
),
),
],
),
),
),
)

`

@tudosxxx
Copy link
Author

cs

@tudosxxx
Copy link
Author

Gif Add Text

@tudosxxx
Copy link
Author

hello

@ueman
Copy link
Collaborator

ueman commented Dec 26, 2022

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?

@tudosxxx tudosxxx changed the title The generated gif is too fast The height is uncertain, with white edges above and below Dec 27, 2022
@tudosxxx
Copy link
Author

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.

@ueman
Copy link
Collaborator

ueman commented Dec 27, 2022

Can I leave the width and height unlocked?

Sure, if that's what you want.

Make sure it will not change during recording

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.

@ueman ueman closed this as completed Dec 27, 2022
@tudosxxx
Copy link
Author

It is too slow to generate files. Is there a solution? Or can you provide a view display first?

@ueman
Copy link
Collaborator

ueman commented Dec 27, 2022

It is too slow to generate files.

Yep, I know.

Is there a solution?

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.

Or can you provide a view display first?

I don't know what you mean by that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants