Skip to content

Commit

Permalink
Fix linter issues in example project
Browse files Browse the repository at this point in the history
  • Loading branch information
felixblaschke committed Nov 2, 2024
1 parent d66e326 commit b5566a4
Show file tree
Hide file tree
Showing 27 changed files with 33 additions and 32 deletions.
3 changes: 2 additions & 1 deletion example/sa_flutter_app/analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions example/sa_flutter_app/lib/example/am1.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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();
Expand Down
4 changes: 2 additions & 2 deletions example/sa_flutter_app/lib/example/am2.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion example/sa_flutter_app/lib/example/movietween1.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion example/sa_flutter_app/lib/example/movietween2.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion example/sa_flutter_app/lib/example/movietween3.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion example/sa_flutter_app/lib/example/sa1.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion example/sa_flutter_app/lib/example/sa2.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion example/sa_flutter_app/lib/example/sa3.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion example/sa_flutter_app/lib/example/sa4.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion example/sa_flutter_app/lib/example/sa5.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion example/sa_flutter_app/lib/example/sa6.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion example/sa_flutter_app/lib/example/sa7.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion example/sa_flutter_app/lib/example/sa8.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion example/sa_flutter_app/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
6 changes: 3 additions & 3 deletions example/sa_flutter_app/lib/readme/animation_builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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) {
Expand All @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion example/sa_flutter_app/lib/readme/animation_mixin.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b5566a4

Please sign in to comment.