diff --git a/example/sa_flutter_app/analysis_options.yaml b/example/sa_flutter_app/analysis_options.yaml index 0d29021..2597cf5 100644 --- a/example/sa_flutter_app/analysis_options.yaml +++ b/example/sa_flutter_app/analysis_options.yaml @@ -23,6 +23,7 @@ linter: rules: # avoid_print: false # Uncomment to disable the `avoid_print` rule # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule + library_private_types_in_public_api: false # Additional information about this file can be found at -# https://dart.dev/guides/language/analysis-options +# https://dart.dev/guides/language/analysis-options \ No newline at end of file diff --git a/example/sa_flutter_app/lib/example/am1.dart b/example/sa_flutter_app/lib/example/am1.dart index d6947f7..1400d96 100644 --- a/example/sa_flutter_app/lib/example/am1.dart +++ b/example/sa_flutter_app/lib/example/am1.dart @@ -4,7 +4,7 @@ import 'package:simple_animations/simple_animations.dart'; void main() => runApp(const MaterialApp(home: Page())); class Page extends StatelessWidget { - const Page({Key? key}) : super(key: key); + const Page({super.key}); @override Widget build(BuildContext context) { @@ -15,7 +15,7 @@ class Page extends StatelessWidget { } class MyAnimatedWidget extends StatefulWidget { - const MyAnimatedWidget({Key? key}) : super(key: key); + const MyAnimatedWidget({super.key}); @override _MyAnimatedWidgetState createState() => _MyAnimatedWidgetState(); diff --git a/example/sa_flutter_app/lib/example/am2.dart b/example/sa_flutter_app/lib/example/am2.dart index 7a72542..9fd3d10 100644 --- a/example/sa_flutter_app/lib/example/am2.dart +++ b/example/sa_flutter_app/lib/example/am2.dart @@ -4,7 +4,7 @@ import 'package:simple_animations/simple_animations.dart'; void main() => runApp(const MaterialApp(home: Page())); class Page extends StatelessWidget { - const Page({Key? key}) : super(key: key); + const Page({super.key}); @override Widget build(BuildContext context) { @@ -15,7 +15,7 @@ class Page extends StatelessWidget { } class MyAnimatedWidget extends StatefulWidget { - const MyAnimatedWidget({Key? key}) : super(key: key); + const MyAnimatedWidget({super.key}); @override _MyAnimatedWidgetState createState() => _MyAnimatedWidgetState(); diff --git a/example/sa_flutter_app/lib/example/movietween1.dart b/example/sa_flutter_app/lib/example/movietween1.dart index 96852cd..d7618f1 100644 --- a/example/sa_flutter_app/lib/example/movietween1.dart +++ b/example/sa_flutter_app/lib/example/movietween1.dart @@ -4,7 +4,7 @@ import 'package:simple_animations/simple_animations.dart'; void main() => runApp(const MyApp()); class MyApp extends StatelessWidget { - const MyApp({Key? key}) : super(key: key); + const MyApp({super.key}); @override Widget build(BuildContext context) { diff --git a/example/sa_flutter_app/lib/example/movietween2.dart b/example/sa_flutter_app/lib/example/movietween2.dart index d8028f9..70775b3 100644 --- a/example/sa_flutter_app/lib/example/movietween2.dart +++ b/example/sa_flutter_app/lib/example/movietween2.dart @@ -4,7 +4,7 @@ import 'package:simple_animations/simple_animations.dart'; void main() => runApp(const MyApp()); class MyApp extends StatelessWidget { - const MyApp({Key? key}) : super(key: key); + const MyApp({super.key}); @override Widget build(BuildContext context) { diff --git a/example/sa_flutter_app/lib/example/movietween3.dart b/example/sa_flutter_app/lib/example/movietween3.dart index 833c114..e2dc44a 100644 --- a/example/sa_flutter_app/lib/example/movietween3.dart +++ b/example/sa_flutter_app/lib/example/movietween3.dart @@ -4,7 +4,7 @@ import 'package:simple_animations/simple_animations.dart'; void main() => runApp(const MyApp()); class MyApp extends StatelessWidget { - const MyApp({Key? key}) : super(key: key); + const MyApp({super.key}); @override Widget build(BuildContext context) { diff --git a/example/sa_flutter_app/lib/example/sa1.dart b/example/sa_flutter_app/lib/example/sa1.dart index 134f485..3d4a397 100644 --- a/example/sa_flutter_app/lib/example/sa1.dart +++ b/example/sa_flutter_app/lib/example/sa1.dart @@ -5,7 +5,7 @@ void main() => runApp(const MaterialApp(home: Scaffold(body: Center(child: Page())))); class Page extends StatelessWidget { - const Page({Key? key}) : super(key: key); + const Page({super.key}); @override Widget build(BuildContext context) { diff --git a/example/sa_flutter_app/lib/example/sa2.dart b/example/sa_flutter_app/lib/example/sa2.dart index aa79515..3774c13 100644 --- a/example/sa_flutter_app/lib/example/sa2.dart +++ b/example/sa_flutter_app/lib/example/sa2.dart @@ -5,7 +5,7 @@ void main() => runApp(const MaterialApp(home: Scaffold(body: Center(child: Page())))); class Page extends StatelessWidget { - const Page({Key? key}) : super(key: key); + const Page({super.key}); @override Widget build(BuildContext context) { diff --git a/example/sa_flutter_app/lib/example/sa3.dart b/example/sa_flutter_app/lib/example/sa3.dart index 63d290e..cae8758 100644 --- a/example/sa_flutter_app/lib/example/sa3.dart +++ b/example/sa_flutter_app/lib/example/sa3.dart @@ -5,7 +5,7 @@ void main() => runApp(const MaterialApp(home: Scaffold(body: Center(child: Page())))); class Page extends StatelessWidget { - const Page({Key? key}) : super(key: key); + const Page({super.key}); @override Widget build(BuildContext context) { diff --git a/example/sa_flutter_app/lib/example/sa4.dart b/example/sa_flutter_app/lib/example/sa4.dart index 86493ce..e65c02e 100644 --- a/example/sa_flutter_app/lib/example/sa4.dart +++ b/example/sa_flutter_app/lib/example/sa4.dart @@ -5,7 +5,7 @@ void main() => runApp(const MaterialApp(home: Scaffold(body: Center(child: Page())))); class Page extends StatelessWidget { - const Page({Key? key}) : super(key: key); + const Page({super.key}); @override Widget build(BuildContext context) { diff --git a/example/sa_flutter_app/lib/example/sa5.dart b/example/sa_flutter_app/lib/example/sa5.dart index c3cd233..9445c55 100644 --- a/example/sa_flutter_app/lib/example/sa5.dart +++ b/example/sa_flutter_app/lib/example/sa5.dart @@ -5,7 +5,7 @@ void main() => runApp(const MaterialApp(home: Scaffold(body: Center(child: Page())))); class Page extends StatelessWidget { - const Page({Key? key}) : super(key: key); + const Page({super.key}); @override Widget build(BuildContext context) { diff --git a/example/sa_flutter_app/lib/example/sa6.dart b/example/sa_flutter_app/lib/example/sa6.dart index 57cc2e1..9162211 100644 --- a/example/sa_flutter_app/lib/example/sa6.dart +++ b/example/sa_flutter_app/lib/example/sa6.dart @@ -5,7 +5,7 @@ void main() => runApp(const MaterialApp(home: Scaffold(body: Center(child: Page())))); class Page extends StatelessWidget { - const Page({Key? key}) : super(key: key); + const Page({super.key}); @override Widget build(BuildContext context) { diff --git a/example/sa_flutter_app/lib/example/sa7.dart b/example/sa_flutter_app/lib/example/sa7.dart index 1867f23..0e592c3 100644 --- a/example/sa_flutter_app/lib/example/sa7.dart +++ b/example/sa_flutter_app/lib/example/sa7.dart @@ -5,7 +5,7 @@ void main() => runApp(const MaterialApp(home: Scaffold(body: Center(child: Page())))); class Page extends StatelessWidget { - const Page({Key? key}) : super(key: key); + const Page({super.key}); @override Widget build(BuildContext context) { diff --git a/example/sa_flutter_app/lib/example/sa8.dart b/example/sa_flutter_app/lib/example/sa8.dart index 0ffc4d3..f46eccd 100644 --- a/example/sa_flutter_app/lib/example/sa8.dart +++ b/example/sa_flutter_app/lib/example/sa8.dart @@ -5,7 +5,7 @@ void main() => runApp(const MaterialApp(home: Scaffold(body: Center(child: Page())))); class Page extends StatefulWidget { - const Page({Key? key}) : super(key: key); + const Page({super.key}); @override _PageState createState() => _PageState(); diff --git a/example/sa_flutter_app/lib/main.dart b/example/sa_flutter_app/lib/main.dart index 65b95e3..8fee69f 100644 --- a/example/sa_flutter_app/lib/main.dart +++ b/example/sa_flutter_app/lib/main.dart @@ -6,7 +6,7 @@ void main() { } class MyPage extends StatelessWidget { - const MyPage({Key? key}) : super(key: key); + const MyPage({super.key}); @override Widget build(BuildContext context) { diff --git a/example/sa_flutter_app/lib/readme/animation_builder.dart b/example/sa_flutter_app/lib/readme/animation_builder.dart index 1a5131d..3b880a3 100644 --- a/example/sa_flutter_app/lib/readme/animation_builder.dart +++ b/example/sa_flutter_app/lib/readme/animation_builder.dart @@ -4,7 +4,7 @@ import 'package:flutter/material.dart'; import 'package:simple_animations/simple_animations.dart'; class ResizeCubeAnimation extends StatelessWidget { - const ResizeCubeAnimation({Key? key}) : super(key: key); + const ResizeCubeAnimation({super.key}); @override Widget build(BuildContext context) { @@ -27,7 +27,7 @@ class ResizeCubeAnimation extends StatelessWidget { } class RotatingBox extends StatelessWidget { - const RotatingBox({Key? key}) : super(key: key); + const RotatingBox({super.key}); @override Widget build(BuildContext context) { @@ -46,7 +46,7 @@ class RotatingBox extends StatelessWidget { } class ColorFadeLoop extends StatelessWidget { - const ColorFadeLoop({Key? key}) : super(key: key); + const ColorFadeLoop({super.key}); @override Widget build(BuildContext context) { diff --git a/example/sa_flutter_app/lib/readme/animation_builder/example_control.dart b/example/sa_flutter_app/lib/readme/animation_builder/example_control.dart index 97af321..249155e 100644 --- a/example/sa_flutter_app/lib/readme/animation_builder/example_control.dart +++ b/example/sa_flutter_app/lib/readme/animation_builder/example_control.dart @@ -5,7 +5,7 @@ void main() => runApp( const MaterialApp(home: Scaffold(body: Center(child: SwappingButton())))); class SwappingButton extends StatefulWidget { - const SwappingButton({Key? key}) : super(key: key); + const SwappingButton({super.key}); @override _SwappingButtonState createState() => _SwappingButtonState(); diff --git a/example/sa_flutter_app/lib/readme/animation_builder/example_play_animation.dart b/example/sa_flutter_app/lib/readme/animation_builder/example_play_animation.dart index b7ac734..b09c402 100644 --- a/example/sa_flutter_app/lib/readme/animation_builder/example_play_animation.dart +++ b/example/sa_flutter_app/lib/readme/animation_builder/example_play_animation.dart @@ -5,7 +5,7 @@ void main() => runApp( const MaterialApp(home: Scaffold(body: Center(child: AnimatedGreenBox())))); class AnimatedGreenBox extends StatelessWidget { - const AnimatedGreenBox({Key? key}) : super(key: key); + const AnimatedGreenBox({super.key}); @override Widget build(BuildContext context) { diff --git a/example/sa_flutter_app/lib/readme/animation_developer_tools/animation_builder.dart b/example/sa_flutter_app/lib/readme/animation_developer_tools/animation_builder.dart index 32e7431..6f8764c 100644 --- a/example/sa_flutter_app/lib/readme/animation_developer_tools/animation_builder.dart +++ b/example/sa_flutter_app/lib/readme/animation_developer_tools/animation_builder.dart @@ -4,7 +4,7 @@ import 'package:simple_animations/simple_animations.dart'; void main() => runApp(const MaterialApp(home: Scaffold(body: MyPage()))); class MyPage extends StatelessWidget { - const MyPage({Key? key}) : super(key: key); + const MyPage({super.key}); @override Widget build(BuildContext context) { diff --git a/example/sa_flutter_app/lib/readme/animation_developer_tools/animation_mixin.dart b/example/sa_flutter_app/lib/readme/animation_developer_tools/animation_mixin.dart index 5f3b954..ad8ec70 100644 --- a/example/sa_flutter_app/lib/readme/animation_developer_tools/animation_mixin.dart +++ b/example/sa_flutter_app/lib/readme/animation_developer_tools/animation_mixin.dart @@ -4,7 +4,7 @@ import 'package:simple_animations/simple_animations.dart'; void main() => runApp(const MyApp()); class MyApp extends StatelessWidget { - const MyApp({Key? key}) : super(key: key); + const MyApp({super.key}); @override Widget build(BuildContext context) { @@ -24,7 +24,7 @@ class MyApp extends StatelessWidget { } class MyAnimation extends StatefulWidget { - const MyAnimation({Key? key}) : super(key: key); + const MyAnimation({super.key}); @override _MyAnimationState createState() => _MyAnimationState(); diff --git a/example/sa_flutter_app/lib/readme/animation_developer_tools/intro.dart b/example/sa_flutter_app/lib/readme/animation_developer_tools/intro.dart index 7738f62..36eef69 100644 --- a/example/sa_flutter_app/lib/readme/animation_developer_tools/intro.dart +++ b/example/sa_flutter_app/lib/readme/animation_developer_tools/intro.dart @@ -2,7 +2,7 @@ import 'package:flutter/material.dart'; import 'package:simple_animations/simple_animations.dart'; class MyPage extends StatelessWidget { - const MyPage({Key? key}) : super(key: key); + const MyPage({super.key}); @override Widget build(BuildContext context) { diff --git a/example/sa_flutter_app/lib/readme/animation_mixin.dart b/example/sa_flutter_app/lib/readme/animation_mixin.dart index f6bc569..439b850 100644 --- a/example/sa_flutter_app/lib/readme/animation_mixin.dart +++ b/example/sa_flutter_app/lib/readme/animation_mixin.dart @@ -2,7 +2,7 @@ import 'package:flutter/material.dart'; import 'package:simple_animations/simple_animations.dart'; class MyWidget extends StatefulWidget { - const MyWidget({Key? key}) : super(key: key); + const MyWidget({super.key}); @override _MyWidgetState createState() => _MyWidgetState(); diff --git a/example/sa_flutter_app/lib/readme/animation_mixin/basic.dart b/example/sa_flutter_app/lib/readme/animation_mixin/basic.dart index d571a09..e4779b1 100644 --- a/example/sa_flutter_app/lib/readme/animation_mixin/basic.dart +++ b/example/sa_flutter_app/lib/readme/animation_mixin/basic.dart @@ -2,7 +2,7 @@ import 'package:flutter/material.dart'; import 'package:simple_animations/simple_animations.dart'; class MyAnimatedWidget extends StatefulWidget { - const MyAnimatedWidget({Key? key}) : super(key: key); + const MyAnimatedWidget({super.key}); @override _MyAnimatedWidgetState createState() => _MyAnimatedWidgetState(); diff --git a/example/sa_flutter_app/lib/readme/animation_mixin/managed1.dart b/example/sa_flutter_app/lib/readme/animation_mixin/managed1.dart index 9099dde..af608ab 100644 --- a/example/sa_flutter_app/lib/readme/animation_mixin/managed1.dart +++ b/example/sa_flutter_app/lib/readme/animation_mixin/managed1.dart @@ -2,7 +2,7 @@ import 'package:flutter/material.dart'; import 'package:simple_animations/simple_animations.dart'; class MyAnimatedWidget extends StatefulWidget { - const MyAnimatedWidget({Key? key}) : super(key: key); + const MyAnimatedWidget({super.key}); @override _MyAnimatedWidgetState createState() => _MyAnimatedWidgetState(); diff --git a/example/sa_flutter_app/lib/readme/animation_mixin/managed2.dart b/example/sa_flutter_app/lib/readme/animation_mixin/managed2.dart index 6640160..d3920aa 100644 --- a/example/sa_flutter_app/lib/readme/animation_mixin/managed2.dart +++ b/example/sa_flutter_app/lib/readme/animation_mixin/managed2.dart @@ -2,7 +2,7 @@ import 'package:flutter/material.dart'; import 'package:simple_animations/simple_animations.dart'; class MyAnimatedWidget extends StatefulWidget { - const MyAnimatedWidget({Key? key}) : super(key: key); + const MyAnimatedWidget({super.key}); @override _MyAnimatedWidgetState createState() => _MyAnimatedWidgetState(); diff --git a/example/sa_flutter_app/lib/readme/movie_tween/duration.dart b/example/sa_flutter_app/lib/readme/movie_tween/duration.dart index 463958c..c1f6636 100644 --- a/example/sa_flutter_app/lib/readme/movie_tween/duration.dart +++ b/example/sa_flutter_app/lib/readme/movie_tween/duration.dart @@ -2,7 +2,7 @@ import 'package:flutter/material.dart'; import 'package:simple_animations/simple_animations.dart'; class MyWidget extends StatelessWidget { - const MyWidget({Key? key}) : super(key: key); + const MyWidget({super.key}); // #begin @override Widget build(BuildContext context) { diff --git a/example/sa_flutter_app/lib/readme/movie_tween/play_animation_example.dart b/example/sa_flutter_app/lib/readme/movie_tween/play_animation_example.dart index 2d9c3ed..73ffa22 100644 --- a/example/sa_flutter_app/lib/readme/movie_tween/play_animation_example.dart +++ b/example/sa_flutter_app/lib/readme/movie_tween/play_animation_example.dart @@ -2,7 +2,7 @@ import 'package:flutter/material.dart'; import 'package:simple_animations/simple_animations.dart'; class MyWidget extends StatelessWidget { - const MyWidget({Key? key}) : super(key: key); + const MyWidget({super.key}); // #begin @override