wave_image 0.0.6 wave_image: ^0.0.6 copied to clipboard
With flutter Wave image you can have a simple circular image with wave and some customization.
import 'package:flutter/material.dart';
import 'package:wave_image/wave_image.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: MyHomePage(title: 'Home Page'),
);
}
}
class MyHomePage extends StatefulWidget {
MyHomePage({Key key, this.title}) : super(key: key);
final String title;
@override
_MyHomePageState createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(widget.title),
),
body: WaveImage(
boarderColor: Colors.red,
boarderWidth: 1,
imageSize: 100,
imageUrl:
'https://www.pngitem.com/pimgs/m/146-1468479_my-profile-icon-blank-profile-picture-circle-hd.png',
radius: 150,
speed: 1000,
waveColor: Colors.green,
),
);
}
}