Skip to content

Commit df3275c

Browse files
committed
Updated example.md
1 parent d3b848e commit df3275c

File tree

3 files changed

+9
-25
lines changed

3 files changed

+9
-25
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ animated_svg: ^1.1.0
3333
Second, import `AnimatedSvg`:
3434
```dart
3535
import '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
4949
void initState() {
5050
// Initialize SvgController
51-
_controller = AnimatedSvgController();
51+
controller = AnimatedSvgController();
5252
super.initState();
5353
}
5454
5555
@override
5656
void dispose() {
5757
// Dispose SvgController
58-
_controller.dispose();
58+
controller.dispose();
5959
super.dispose();
6060
}
6161
6262
@override
6363
Widget 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,

example/example.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,27 @@
77
`main.dart`
88
```dart
99
// Define an SvgController
10-
late final SvgController _controller;
10+
late final SvgController controller;
1111
1212
@override
1313
void initState() {
1414
// Initialize SvgController
15-
_controller = AnimatedSvgController();
15+
controller = AnimatedSvgController();
1616
super.initState();
1717
}
1818
1919
@override
2020
void dispose() {
2121
// Dispose SvgController
22-
_controller.dispose();
22+
controller.dispose();
2323
super.dispose();
2424
}
2525
2626
@override
2727
Widget 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,

example/media_player/README.md

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)