Here is an example of how to blur image in flutter.
Complete code from main.dart file.
import 'dart:ui';
import 'package:flutter/material.dart';
main(List<String> args) {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@
override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(body: MyHomePage()),
);
}
}
class MyHomePage extends StatelessWidget {
@
override
Widget build(BuildContext context) {
return Center(
child: ImageFiltered(
imageFilter: ImageFilter.blur(sigmaX: 3),
child: FlutterLogo(
size: 100,
),
));
}
}
Thanks,Srikanth