Baseflow / screenrecorder

Flutter package which can be used to record flutter widgets
https://pub.dev/packages/screen_recorder
MIT License
64 stars 30 forks source link

latest flutter sdk complains, and also, workaround provides black result #8

Closed jeffreyliu8 closed 2 years ago

jeffreyliu8 commented 3 years ago

Screen Shot 2021-08-25 at 11 22 47 AM

Screen Shot 2021-08-25 at 11 22 37 AM
jeffreyliu8 commented 3 years ago

my workaround

             var gif = await controller.export();
            var list  = Uint8List.fromList(gif!);

            showDialog(
              context: context,
              builder: (context) {
                return AlertDialog(
                  content: Image.memory(list),
                );
              },
            );
ueman commented 3 years ago

You can fix the black background by setting a background for the widget itself.

The black background is caused by a transparent background which is somehow interpreted as black.

But yeah, this is not really production ready and more of a proof of concept so use it at your own risk.

jeffreyliu8 commented 3 years ago

but i did try set background to white.

ueman commented 2 years ago

This is now fixed