Giter Site home page Giter Site logo

nasrallahelfarra / flutter-native-screenshot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nusanet/flutter-native-screenshot

0.0 0.0 0.0 87 KB

A Flutter plugin to take screenshot on Android & iOS

Home Page: https://pub.dev/packages/flutter_native_screenshot

License: MIT License

Ruby 11.46% Objective-C 4.19% Java 44.93% Dart 17.36% Swift 22.06%

flutter-native-screenshot's Introduction

Flutter Native Screenshot

Plugin ini berfungsi untuk mengambil screenshot dari layar device yang sedang aktif dengan cara menggunakan kode native-nya langsung. Untuk saat ini support untuk platform Android & iOS.

Cara Instalasi

Buka file pubspec.yaml dan tambahkan baris kode berikut didalam dependencies.

flutter_native_screenshot: ^<versi_terbaru>

Catatan: Harap ganti tulisan <versi_terbaru> dengan nilai versi terbaru dari plugin ini.

Android

Untuk platform Android, Anda harus menambahkan permission berikut kedalam file AndroidManifest.xml.

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

Dan jangan lupa tambahkan property berikut kedalam tag application didalam file AndroidManifest.xml.

android;requestLegacyExternalStorage="true"

iOS

Untuk platform iOS, Anda harus menambahkan permission berikut kedalam file Info.plist.

<key>NSPhotoLibraryAddUsageDescription</key>
<string>Take pretty screenshots and save it to the PhotoLibrary.</string>

Contoh Pemakaian

Untuk contoh pemakaian silakan lihat didalam projek example ya.

Catatan Penting

Perlu diketahui bahwa di plugin ini tidak meng-handle proses pengecekan runtime permission. Oleh karena itu, pastikan Anda mengecek terlebih dahulu runtime permission-nya menggunakan plugin permission_handler.

flutter-native-screenshot's People

Contributors

coderjava avatar nasrallahelfarra avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.