widget_circular_animator 1.0.0 widget_circular_animator: ^1.0.0 copied to clipboard
A pre-built Flutter circular animator, can suit your new profile view or your any other widgets.
import 'package:example/Res.dart';
import 'package:flutter/material.dart';
import 'package:widget_circular_animator/widget_circular_animator.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: Center(
child: WidgetCircularAnimator(
size: 250,
innerIconsSize: 3,
outerIconsSize: 3,
innerAnimation: Curves.easeInOutBack,
outerAnimation: Curves.easeInOutBack,
innerColor: Colors.deepPurple,
outerColor: Colors.orangeAccent,
innerAnimationSeconds: 10,
outerAnimationSeconds: 10,
child: Container(
decoration:
BoxDecoration(shape: BoxShape.circle, color: Colors.grey[200]),
child: Image.asset(
Resources.person,
),
),
),
)),
);
}
}