jagritjkh / blur Goto Github PK
View Code? Open in Web Editor NEWFlutter package for blurring the child widget provided to it.
Home Page: https://pub.dev/packages/blur
License: MIT License
Flutter package for blurring the child widget provided to it.
Home Page: https://pub.dev/packages/blur
License: MIT License
Place two blur components next to each other,Will appear.
Scaffold(
appBar: AppBar(
title: const Text('BlurBox', style: TextStyle(color: Colors.black))),
backgroundColor: Colors.white,
body: Column(
children: [
Blur(
blur: 2.5,
blurColor: Theme.of(context).primaryColor,
child: Padding(
padding: const EdgeInsets.all(8.0),
child: Container(
width: double.infinity,
height: 100,
alignment: Alignment.center,
child: const Text(
'Blur1',
style: TextStyle(color: Colors.black, fontSize: 16),
),
),
),
),
Blur(
blur: 2.5,
blurColor: Theme.of(context).primaryColor,
child: Padding(
padding: const EdgeInsets.all(8.0),
child: Container(
width: double.infinity,
height: 100,
alignment: Alignment.center,
child: const Text(
'Blur2',
style: TextStyle(color: Colors.black, fontSize: 16),
),
),
),
)
],
),
);
```
return Scaffold(
body: Stack(
children: [
Container(
// padding: EdgeInsets.only(top: 100),
child: WebView(
initialUrl: url,
javascriptMode: JavascriptMode.unrestricted,
),
),
Container(
height: 110,
width: double.infinity,
child: Text('demo'),
// color: Colors.black.withOpacity(0.7),
).frosted(blur: 20, frostColor: Colors.black, frostOpacity: 0.2)
]
),
);
BackdropFilter performance issue
ImageFiltered better than BackdropFilter in performance comparison, But can't blur the background.
Is there a way to do the blurring/frosting with animation?
With duration and curve, etc
Hi, I am using Blur widget as an item of my ListView.builder . it makes my app laggy even in release mode. here is the code below I use for Blur. is there a workaround for this?
Blur(
blur: 2,
child: CachedNetworkImage(
imageUrl: thumbnailURL,
fit: BoxFit.fill,
height: double.infinity,
width: double.infinity,
fadeInCurve: Curves.easeIn,
fadeInDuration: const Duration(milliseconds: 100),
),
),
Hi ! :)
First of all, thank you for your awesome plugin !
I have a question
I have a specific widget, a bar chart with a transparent background, and i want to make it blurry.
Things that i succeed with your plugin, but saddly, it also blurred everything behind it, such as my view background image.
Can you tell me please how to blur only the widget and not things behind it ?
Thank you !
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.