v4.0.2blur
Blur는 자식을 흐리게 만드는 래퍼 위젯입니다. 이미지를 흐리게 하기 위해 ImageBlur.asset 및 ImageBlur.network가 있습니다. Frost는 배경을 흐리게 하는 또 다른 래퍼입니다.
375좋아요 5.6만30일 다운로드160Pub 점수
AndroidiOSWebmacOSWindowsLinux
제공된 자식 위젯을 흐리게 하는 Flutter 패키지입니다.
아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
Blur is a wrapper widget that blur it's child. There are ImageBlur.asset and ImageBlur.network that blur the image. Frost is another wrapper which blurs the background.
To use this package, add blur as a dependency in your pubspec.yaml file.

dependencies:
blur: ^4.0.0
import 'package:blur/blur.dart'
Blur(
blur: 2.5,
blurColor: Theme.of(context).primaryColor,
child: Padding(
padding: EdgeInsets.all(8.0),
child: Text(
'Blur',
style: Theme.of(context).textTheme.headline3,
),
),
),


Image.asset('assets/cat.png').blurred(
colorOpacity: 0.2,
borderRadius: BorderRadius.horizontal(right: Radius.circular(20)),
blur: blurValue,
overlay: Text(
'Cat',
style: theme.textTheme.headline2!.copyWith(color: theme.scaffoldBackgroundColor),
),
),

Stack(
alignment: Alignment.center,
children: [
Image.asset(
'assets/cat.png',
scale: 3.5,
),
Text(
'Frost',
style: theme.textTheme.headline4,
).frosted(
blur: blurValue,
borderRadius: BorderRadius.circular(20),
padding: EdgeInsets.all(8),
),
],
),

의존성 목록 3 개
{"sdk":"flutter"}^5.0.0{"sdk":"flutter"}사용 목적에 따라 검색하고 개발 활동을 비교한 뒤 원본 저장소에서 요구 사항을 확인하세요.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗