Search packages, repositories and app categories

Package detailsv2.0.26

flutter_screen_recording

A new Flutter plugin for record the screen. This plugin can be used for record the screen on android, iOS, and web devices.

AndroidiOSWeb
30-day downloads
2K
Likes
166
Pub points
110

Install package

flutter pub add flutter_screen_recording

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A Flutter plugin enabling screen recording on Android, iOS, and web platforms. It allows developers to capture device screens within their apps, useful for tutorials, demos, or user-assisted support features. The plugin integrates seamlessly with Flutter's ecosystem and supports cross-platform functionality. It is designed for ease of use with straightforward API access for starting and stopping recordings. Ideal for educational apps, productivity tools, or any application requiring in-app screen capture capabilities.

Use cases

  • Creating tutorial videos within apps
  • Recording user sessions for debugging
  • Building interactive learning applications
  • Enabling user-generated content creation
  • Supporting remote assistance features

Key features

  • Cross-platform screen recording (Android, iOS, Web)
  • Simple start/stop recording API
  • Integration with Flutter's native platform channels
  • Supports recording both app UI and system-level screen content
  • Lightweight and easy to implement

Suitable for

  • Educational app developers
  • Productivity tool creators
  • Support and helpdesk application teams
  • App developers needing in-app demo features
  • Creators of interactive content platforms

Considerations

  • Requires appropriate permissions on Android and iOS
  • Web recording may have browser-specific limitations
  • Performance impact during long recordings
  • User consent required for privacy compliance
  • Limited control over recording quality settings

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

flutter_screen_recording

Flutter plugin to record the screen on Android, iOS, and web.

Current platform support in this repository:

  • Android: minSdkVersion 23
  • iOS: iOS 11.0+
  • Web: supported through the federated web implementation

Getting Started

Import the package:

import 'package:flutter_screen_recording/flutter_screen_recording.dart';

Start screen recording:

final bool started = await FlutterScreenRecording.startRecordScreen(
  'my_recording',
  titleNotification: 'Screen recording',
  messageNotification: 'Recording in progress',
);

Start screen recording with microphone audio:

final bool started = await FlutterScreenRecording.startRecordScreenAndAudio(
  'my_recording',
  titleNotification: 'Screen recording',
  messageNotification: 'Recording in progress',
);

Stop recording and get the output path or file name:

final String path = await FlutterScreenRecording.stopRecordScreen;

Android

The Android implementation uses MediaProjection, MediaRecorder, and a foreground service.

  • The plugin currently builds with compileSdkVersion 35
  • The plugin manifest already includes its service declaration and required foreground-service permissions
  • If you record audio, request microphone permission at runtime in your app
  • On modern Android versions, you may also need notification permission for the foreground service notification

The example app requests permissions with permission_handler before starting recording.

iOS

The iOS implementation uses ReplayKit and requires iOS 11.0+.

Add the usage description for microphone access if you record audio:

<key>NSMicrophoneUsageDescription</key>
<string>Save audio in video</string>

The plugin returns the local output file path. If your app later saves the file to the Photos library, also add the appropriate Photos usage description to your app.

Web

The web implementation uses getDisplayMedia and MediaRecorder.

  • Best experience is on modern desktop browsers
  • Browser support depends on screen-capture and codec support
  • MP4 is preferred when the browser reports video/mp4 recording support; WebM is used as a fallback
  • The downloaded file receives the extension that matches the format actually recorded (.mp4 or .webm)
  • The web implementation downloads the recorded file in the browser when recording stops

Notes

  • This package exposes asynchronous APIs; use await when starting and stopping recordings
  • Notification title and message parameters are used by the Android implementation
  • Returned output differs by platform: native platforms return a local path, while web triggers a browser download

Categories

Dependencies

Dependency list 3 items

Source repository

Projects using this package

No data available yet.