v4.0.2blur
Blur는 자식을 흐리게 만드는 래퍼 위젯입니다. 이미지를 흐리게 하기 위해 ImageBlur.asset 및 ImageBlur.network가 있습니다. Frost는 배경을 흐리게 하는 또 다른 래퍼입니다.
375좋아요 4.7만30일 다운로드160Pub 점수
AndroidiOSWebmacOSWindowsLinux
제공된 자식 위젯을 흐리게 하는 Flutter 패키지입니다.
{"sdk":"flutter"}^5.0.0{"sdk":"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.
blur
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,
),
),
),
blur_text
normal_image
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),
),
),
blur_image
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),
),
],
),
frost_image