in_app_recorder 0.0.9
in_app_recorder: ^0.0.9 copied to clipboard
A widget-level screen recorder with red border, export, and share support.
# in_app_recorder
A Flutter plugin to, save it locally, and share the recorded video via native share sheets (social/messaging apps).
> β
Records *only your app*, not the entire device screen.
> β
Automatically shares video when recording ends.
---
## π§° Features
- Start/Stop app-only screen recording
- Add/remove red border overlay to indicate recording state
- Automatically share the video file once recorded
---
## π¦ Installation
Add to your `pubspec.yaml`:
```yaml
dependencies:
in_app_recorder:
βοΈ Android Setup #
- Permissions (Add in
android/app/src/main/AndroidManifest.xml
):
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_INTERNAL_STORAGE" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO" />
- Minimum SDK Version (in
android/app/build.gradle
):
defaultConfig {
minSdkVersion 24
}
- Enable View Recording (if using MediaProjection internally):
Some Android versions may require additional permission handling for screen capture APIs.
π iOS Setup #
- Permissions (in
ios/Runner/Info.plist
):
<key>NSPhotoLibraryAddUsageDescription</key>
<string>We need access to save the recorded screen to your photo library.</string>
-
Minimum iOS Version:
iOS 12.0+
recommended -
Post-processing: iOS may require moving saved files to the app's document directory or Photos library for access.
π Usage #
import 'package:flutter_screen_recorder_overlay/in_app_recorder.dart';
final controller = ScreenRecorderController(videoExportPath: videoExportPath, fps: 8, shareMessage: "Hey this is the recorded video", shareVideo: true);
// Start recording
await controller.startRecording();
// Stop recording and share
await controller.stopRecordingAndShare();
β Add Red Border During Recording #
// This automatically adds a red border overlay while recording
await controller.startRecording();
π Output #
The recorded file is saved locally (.mp4
) and then shared using native share sheets on both Android and iOS.
π± Example #
Check the example/
directory for a fully working app.
π Notes #
- Android '9+ may require scoped storage handling
- Recording starts after build; consider a small delay before invoking
π¬ Issues & Feedback #
Feel free to open an issue or contribute a PR!
π License #
MIT License Β© 2025 Nishant Mishra
### flutter pub publish --dry-run
### flutter pub publish