File tree Expand file tree Collapse file tree 3 files changed +9
-25
lines changed
Expand file tree Collapse file tree 3 files changed +9
-25
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ animated_svg: ^1.1.0
3333Second, import ` AnimatedSvg`:
3434` ` ` dart
3535import 'package:animated_svg/animated_svg.dart';
36- import 'package:animated_svg/animated_svg_controller .dart';
36+ import 'package:animated_svg/animated_svgcontroller .dart';
3737` ` `
3838
3939# # Usage
@@ -43,27 +43,27 @@ Basic usage example:
4343` main.dart`
4444` ` ` dart
4545// Define an SvgController
46- late final SvgController _controller ;
46+ late final SvgController controller ;
4747
4848@override
4949void initState() {
5050 // Initialize SvgController
51- _controller = AnimatedSvgController();
51+ controller = AnimatedSvgController();
5252 super.initState();
5353}
5454
5555@override
5656void dispose() {
5757 // Dispose SvgController
58- _controller .dispose();
58+ controller .dispose();
5959 super.dispose();
6060}
6161
6262@override
6363Widget build(BuildContext context) {
6464 // Call the AnimatedSvg widget anywhere in your widget tree.
6565 return AnimatedSvg(
66- controller: _controller ,
66+ controller: controller ,
6767 duration: const Duration(milliseconds: 600),
6868 onTap: () {},
6969 size: 80,
Original file line number Diff line number Diff line change 77` main.dart `
88``` dart
99// Define an SvgController
10- late final SvgController _controller ;
10+ late final SvgController controller ;
1111
1212@override
1313void initState() {
1414 // Initialize SvgController
15- _controller = AnimatedSvgController();
15+ controller = AnimatedSvgController();
1616 super.initState();
1717}
1818
1919@override
2020void dispose() {
2121 // Dispose SvgController
22- _controller .dispose();
22+ controller .dispose();
2323 super.dispose();
2424}
2525
2626@override
2727Widget build(BuildContext context) {
2828 // Call the AnimatedSvg widget anywhere in your widget tree.
2929 return AnimatedSvg(
30- controller: _controller ,
30+ controller: controller ,
3131 duration: const Duration(milliseconds: 600),
3232 onTap: () {},
3333 size: 80,
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments