FLUTTER ECOSYSTEM

imSanjaySoni/ObscureWidget

जब स्क्रीन को रिकॉर्ड किया जा रहा होता है, तो ObscureWidget प्लगइन अपने बच्चे को धुंधला कर देता है। ObscureWidget.builder() को रिकॉर्ड किए गए स्क्रीन के लिए कस्टम हैंडलिंग जोड़ने के लिए अतिरिक्त नियंत्रण मिलता है।

ObscureWidget प्रोजेक्ट कवर
Stars
13
Forks
0
अंतिम पुश (UTC)
23 सित॰ 2023
प्रोजेक्ट स्थिति
सक्रिय
Sanjay Soni GitHub avatar
GITHUB User

Sanjay Soni ↗

Mobile Engineer | Prev. Tap, Uni Cards | Flutter, SwiftUI

Bangalore
भाषाएँDartRubySwiftObjective-C

तकनीकी विषय

उपयोग की गई निर्भरताएँ

निर्भरता सूची 3 आइटम
  • flutter{"sdk":"flutter"}
  • flutter_testडेवलपमेंट{"sdk":"flutter"}
  • flutter_lintsडेवलपमेंट^2.0.0

मूल README

यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।

README खोलें / बंद करें

ObscureWidget Plugin

Platform iOS Pub Pub Pub Pub Points GitHub issues License


ObscureWidget() blurs its child when the screen is being captured. ObscureWidget.builder() gives extra control to add custom handling when recording the screen. currently supported on only the iOS platform.

Example

Demo Initial While Recording
Demo Demo Demo

Usages

Let's look at how to use the ObscureWidget, ObscureWidget.builder(), and .obscured() extensions.

ObscureWidget

supported parameters blur, blurColor, borderRadius, and colorOpacity

ObscureWidget(
    child: Container(
    width: double.infinity,
    color: Colors.amber,
    padding: const EdgeInsets.all(18.0),
    child: Text(
        'Secure Text',
        style: Theme.of(context).textTheme.headline6,
        ),
    ),
)
with .obscured() extension
 Container(
    width: double.infinity,
    color: Colors.amber,
    padding: const EdgeInsets.all(18.0),
    child: Text(
    'Other Secure Text with extension',
    style: Theme.of(context).textTheme.headline6,
    ),
).obscured(blur: 2, blurColor: Colors.red),
ObscureWidget.builder()

use this for custom implementation

ObscureWidget.builder(
    obscureBuilder: (context, isCaptured, child) {
    return Container(
        decoration: BoxDecoration(
        border: Border.all(
            width: 4,
            color: isCaptured ? Colors.red : Colors.green,
            ),
        ),
        child: child,
    );
    },
    child: Container(
    width: double.infinity,
    color: Colors.black,
    padding: const EdgeInsets.all(18.0),
    child: Text(
        'Other Secure Text with builder constructor',
        style: Theme.of(context).textTheme.headline6?.copyWith(color: Colors.white),
        ),
    ),
)