Search packages, repositories and app categories

camera_filters cover
Package detailsv0.3.1

camera_filters

This package will use camera with dynamic color list of filters, crop your image, text on image and change the text color.

AndroidiOS
30-day downloads
185
Likes
51
Pub points
120

Install package

flutter pub add camera_filters

Package Overview

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

The camera_filters package enables Flutter developers to integrate a camera interface with real-time filter effects, image cropping, and text overlay capabilities. It supports dynamic color-based filters, allows users to crop captured images, and provides options to add and customize text with adjustable colors. Designed for Android and iOS, it simplifies the implementation of advanced camera features in mobile apps. The package is ideal for social media, photo editing, or content creation applications requiring interactive visual enhancements.

Use cases

  • Social media app photo capture
  • Photo editing tools with filters
  • User-generated content platforms
  • Real-time image annotation
  • Custom camera interfaces
  • Creative storytelling apps

Key features

  • Dynamic color filters
  • Image cropping functionality
  • Text overlay with color customization
  • Real-time preview
  • Cross-platform support (Android & iOS)
  • Simple integration via pub add command

Suitable for

  • Mobile app developers
  • Photography and editing apps
  • Content creators
  • Interactive camera UIs
  • Apps needing on-the-fly image modifications

Considerations

  • Requires camera permissions on Android and iOS
  • Limited to basic text styling
  • May impact performance on low-end devices
  • No built-in saving or sharing features
  • Depends on external GitHub repository for updates

Original README

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

Camera Filters

Realtime Camera Filters

Description

This package will use camera with dynamic color list of filters, crop your image, text on image , change the text color and you can also use emojis. You can use your own custom color list to change filters. In the end it will provide you an edited image in onDone listener

Features

  • Realtime Camera Filters.
  • Draw, add text change filters in camera.
  • Filters on video.
  • TextOverlay on video.

IOS

The camera_filters plugin compiles for any version of iOS, but its functionality requires iOS 10 or higher. If compiling for iOS 9, make sure to programmatically check the version of iOS running on the device before using any camera_filters plugin features.

Add two rows to the ios/Runner/Info.plist:

  • one with the key Privacy - Camera Usage Description and a usage description.
  • and one with the key Privacy - Microphone Usage Description and a usage description. If editing Info.plist as text, add:
    <key>NSCameraUsageDescription</key>
    <string>your usage description here</string>
    <key>NSMicrophoneUsageDescription</key>
    <string>your usage description here</string>

Android

  • Change the minimum Android sdk version to 24 (or higher) in your android/app/build.gradle file.
    minSdkVersion 24

Step 1. Ensure the following permission is present in your Android Manifest file, located in /android/app/src/main/AndroidManifest.xml:

    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

Step 2. Add the JitPack repository to your Android build file, located in /android/build.gradle:

    allprojects {
    repositories {
    maven { url 'https://jitpack.io' }
    }
}

Usage

Example

To use this package:

    dependencies:
      flutter:
        sdk: flutter
      camera_filters: <latest-version>

ScreenShots

1 2

3 4

Video

pack

!

How to use

    import 'package:camera_filters/camera_filters.dart';
    import 'package:flutter/material.dart';
    
    void main() {
      WidgetsFlutterBinding.ensureInitialized();
      runApp(MyApp());
    }
    
    class MyApp extends StatefulWidget {
      @override
      _MyAppState createState() => _MyAppState();
    }
    
    class _MyAppState extends State<MyApp> {
      @override
      Widget build(BuildContext context) {
        return MaterialApp(
          home: Scaffold(
            body: CameraScreenPlugin(onDone: (value) {
              /// value returns the picture path you can save here or navigate to some screen
              print(value);
            },


                /// time limit for video in seconds
                videoTimeLimit: 10,


                /// value returns the video path you can save here or navigate to some screen
                onVideoDone: (value) {
              print(value);
            }
    
                /// profileIconWidget: , if you want to add profile icon on camera you can your widget here
    
                ///filterColor: ValueNotifier<Color>(Colors.transparent),  your first filter color when you open camera
    
                /// filters: [],
                ///you can pass your own list of colors like this List<Color> colors = [Colors.blue, Colors.blue, Colors.blue ..... Colors.blue]
                ///make sure to pass transparent color to first index so the first index of list has no filter effect
                ),
          ),
        );
      }
    }

Categories

Dependencies

Dependency list 9 items

Source repository

Projects using this package

No data available yet.