v4.0.2blur
Blur अपने बच्चे को ब्लर करता है। छवि को ब्लर करने के लिए ImageBlur.asset और ImageBlur.network हैं। Frost पृष्ठभूमि को ब्लर करने वाला एक अन्य वрапर है।
इसके द्वारा प्रदान किए गए बच्चे के विजेट को धुंधला करने के लिए 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 ↗