imSanjaySoni/ObscureWidget
화면 녹화 중일 때 자식을 흐리게 하는 ObscureWidget 플러그인입니다. ObscureWidget.builder()는 화면이 녹화될 때 사용자 정의 처리를 추가할 수 있는 추가적인 제어를 제공합니다.
- Stars
- 13
- Forks
- 0
- 최근 푸시(UTC)
- 2023. 9. 23.
- 프로젝트 상태
- 활성
언어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),
),
),
)