screen_recorder
0.3.0, released 2 years ago by baseflow.com
Record Flutter widgets and export the recordings as animated GIFs.
What it does
Allows you to wrap any Flutter widget with a ScreenRecorder component to record its visual output. Recordings can be exported as GIFs using a pure Dart/Flutter implementation.
AI-written summary of version 0.3.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to generate animated GIFs of specific Flutter widgets.
- You are running on platforms where a pure Dart implementation is advantageous.
Skip it when
- You need to record audio along with your video/GIF output.
- You need to export directly to a video format.
- You are recording on the web where GIF encoding takes an excessive amount of time.
Strengths
- Pure Flutter/Dart implementation without native platform code dependencies.
- Supports multiple platforms including Android, iOS, Web, Windows, macOS, and Linux.
- Provides custom exporters and frame configuration options.
Weaknesses
- Encoding GIFs takes a significant amount of time, making it impractical for the web.
- Does not support audio or direct video export.
- Platform views (like webviews or Google Maps) are invisible in screenshots.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
not documented
ScreenRecorder(
height: 200,
width: 200,
background: Colors.white,
controller: ScreenRecorderController(
pixelRatio: 0.5,
skipFramesBetweenCaptures: 2,
),
child: Container(),
);Alternatives
Packages that do the same job and could replace screen_recorder.
- video_player_android
Android implementation of the video_player plugin
88Compare - flutter_screen_recording
Record device screen on Android, iOS, and web with optional audio.
71Compare - video_player_avfoundation
iOS and macOS implementation of the video_player plugin
86Compare - native_video_player
A Flutter widget to play videos on iOS and Android using a native implementation.
67Compare
Works with
Packages commonly used together with screen_recorder: ones it builds on, ones built on it, and its own family.