Skip to content

Commit

Permalink
refactor: general refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
jhomlala committed Jun 8, 2024
1 parent 3d72680 commit e39610c
Show file tree
Hide file tree
Showing 30 changed files with 60 additions and 94 deletions.
4 changes: 2 additions & 2 deletions example/lib/basic_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ void main() {
}

class MyApp extends StatefulWidget {
const MyApp({Key? key}) : super(key: key);
const MyApp({super.key});

@override
State<StatefulWidget> createState() {
Expand Down Expand Up @@ -48,7 +48,7 @@ class _MyAppState extends State<MyApp> {
}

class ChildWidget extends StatelessWidget {
const ChildWidget({Key? key}) : super(key: key);
const ChildWidget({super.key});

@override
Widget build(BuildContext context) {
Expand Down
4 changes: 2 additions & 2 deletions example/lib/change_custom_parameters_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ void main() {
}

class MyApp extends StatefulWidget {
const MyApp({Key? key}) : super(key: key);
const MyApp({super.key});

@override
State<StatefulWidget> createState() {
Expand Down Expand Up @@ -54,7 +54,7 @@ class _MyAppState extends State<MyApp> {
}

class ChildWidget extends StatelessWidget {
const ChildWidget({Key? key}) : super(key: key);
const ChildWidget({super.key});

@override
Widget build(BuildContext context) {
Expand Down
4 changes: 2 additions & 2 deletions example/lib/cupertino_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ void main() {
}

class MyApp extends StatefulWidget {
const MyApp({Key? key}) : super(key: key);
const MyApp({super.key});

@override
State<StatefulWidget> createState() {
Expand Down Expand Up @@ -55,7 +55,7 @@ class _MyAppState extends State<MyApp> {
}

class ChildWidget extends StatelessWidget {
const ChildWidget({Key? key}) : super(key: key);
const ChildWidget({super.key});

@override
Widget build(BuildContext context) {
Expand Down
4 changes: 2 additions & 2 deletions example/lib/custom_logger_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ void main() {
}

class MyApp extends StatefulWidget {
const MyApp({Key? key}) : super(key: key);
const MyApp({super.key});

@override
State<StatefulWidget> createState() {
Expand Down Expand Up @@ -52,7 +52,7 @@ class _MyAppState extends State<MyApp> {
}

class ChildWidget extends StatelessWidget {
const ChildWidget({Key? key}) : super(key: key);
const ChildWidget({super.key});

@override
Widget build(BuildContext context) {
Expand Down
4 changes: 2 additions & 2 deletions example/lib/custom_navigator_key_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ void main() {
class MyApp extends StatefulWidget {
final GlobalKey<NavigatorState> navigatorKey;

const MyApp(this.navigatorKey, {Key? key}) : super(key: key);
const MyApp(this.navigatorKey, {super.key});

@override
State<StatefulWidget> createState() {
Expand Down Expand Up @@ -51,7 +51,7 @@ class _MyAppState extends State<MyApp> {
}

class ChildWidget extends StatelessWidget {
const ChildWidget({Key? key}) : super(key: key);
const ChildWidget({super.key});

@override
Widget build(BuildContext context) {
Expand Down
6 changes: 3 additions & 3 deletions example/lib/custom_report_mode_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ void main() {
}

class MyApp extends StatefulWidget {
const MyApp({Key? key}) : super(key: key);
const MyApp({super.key});

@override
State<StatefulWidget> createState() {
Expand Down Expand Up @@ -48,7 +48,7 @@ class _MyAppState extends State<MyApp> {
}

class ChildWidget extends StatelessWidget {
const ChildWidget({Key? key}) : super(key: key);
const ChildWidget({super.key});

@override
Widget build(BuildContext context) {
Expand Down Expand Up @@ -96,7 +96,7 @@ class CustomPage extends StatelessWidget {
final ReportMode reportMode;
final Report report;

const CustomPage(this.reportMode, this.report, {Key? key}) : super(key: key);
const CustomPage(this.reportMode, this.report, {super.key});

@override
Widget build(BuildContext context) {
Expand Down
4 changes: 2 additions & 2 deletions example/lib/discord_handler_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ void main() {
}

class MyApp extends StatefulWidget {
const MyApp({Key? key}) : super(key: key);
const MyApp({super.key});

@override
State<StatefulWidget> createState() {
Expand Down Expand Up @@ -53,7 +53,7 @@ class _MyAppState extends State<MyApp> {
}

class ChildWidget extends StatelessWidget {
const ChildWidget({Key? key}) : super(key: key);
const ChildWidget({super.key});

@override
Widget build(BuildContext context) {
Expand Down
4 changes: 2 additions & 2 deletions example/lib/email_manual_handler_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ void main() {
}

class MyApp extends StatefulWidget {
const MyApp({Key? key}) : super(key: key);
const MyApp({super.key});

@override
State<StatefulWidget> createState() {
Expand Down Expand Up @@ -54,7 +54,7 @@ class _MyAppState extends State<MyApp> {
}

class ChildWidget extends StatelessWidget {
const ChildWidget({Key? key}) : super(key: key);
const ChildWidget({super.key});

@override
Widget build(BuildContext context) {
Expand Down
4 changes: 2 additions & 2 deletions example/lib/error_widget_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ void main() {
}

class MyApp extends StatefulWidget {
const MyApp({Key? key}) : super(key: key);
const MyApp({super.key});

@override
State<StatefulWidget> createState() {
Expand Down Expand Up @@ -70,7 +70,7 @@ class _MyAppState extends State<MyApp> {
}

class ChildWidget extends StatelessWidget {
const ChildWidget({Key? key}) : super(key: key);
const ChildWidget({super.key});

@override
Widget build(BuildContext context) {
Expand Down
4 changes: 2 additions & 2 deletions example/lib/excluded_parameters_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ void main() {
}

class MyApp extends StatefulWidget {
const MyApp({Key? key}) : super(key: key);
const MyApp({super.key});

@override
State<StatefulWidget> createState() {
Expand Down Expand Up @@ -61,7 +61,7 @@ class _MyAppState extends State<MyApp> {
}

class ChildWidget extends StatelessWidget {
const ChildWidget({Key? key}) : super(key: key);
const ChildWidget({super.key});

@override
Widget build(BuildContext context) {
Expand Down
4 changes: 2 additions & 2 deletions example/lib/explicit_error_report_handler_map_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ void main() {
}

class MyApp extends StatefulWidget {
const MyApp({Key? key}) : super(key: key);
const MyApp({super.key});

@override
State<StatefulWidget> createState() {
Expand Down Expand Up @@ -56,7 +56,7 @@ class _MyAppState extends State<MyApp> {
}

class ChildWidget extends StatelessWidget {
const ChildWidget({Key? key}) : super(key: key);
const ChildWidget({super.key});

@override
Widget build(BuildContext context) {
Expand Down
4 changes: 2 additions & 2 deletions example/lib/explicit_error_report_mode_map_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ void main() {
}

class MyApp extends StatefulWidget {
const MyApp({Key? key}) : super(key: key);
const MyApp({super.key});

@override
State<StatefulWidget> createState() {
Expand Down Expand Up @@ -56,7 +56,7 @@ class _MyAppState extends State<MyApp> {
}

class ChildWidget extends StatelessWidget {
const ChildWidget({Key? key}) : super(key: key);
const ChildWidget({super.key});

@override
Widget build(BuildContext context) {
Expand Down
4 changes: 2 additions & 2 deletions example/lib/file_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ void main() async {
}

class MyApp extends StatefulWidget {
const MyApp({Key? key}) : super(key: key);
const MyApp({super.key});

@override
State<StatefulWidget> createState() {
Expand Down Expand Up @@ -61,7 +61,7 @@ class _MyAppState extends State<MyApp> {
}

class ChildWidget extends StatelessWidget {
const ChildWidget({Key? key}) : super(key: key);
const ChildWidget({super.key});

@override
Widget build(BuildContext context) {
Expand Down
2 changes: 1 addition & 1 deletion example/lib/filter_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ void main() {
}

class MyApp extends StatefulWidget {
const MyApp({Key? key}) : super(key: key);
const MyApp({super.key});

@override
State<StatefulWidget> createState() {
Expand Down
4 changes: 2 additions & 2 deletions example/lib/http_handler_update_headers_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ void main() {
}

class MyApp extends StatefulWidget {
const MyApp({Key? key}) : super(key: key);
const MyApp({super.key});

@override
State<StatefulWidget> createState() {
Expand Down Expand Up @@ -61,7 +61,7 @@ class _MyAppState extends State<MyApp> {
}

class ChildWidget extends StatelessWidget {
const ChildWidget({Key? key}) : super(key: key);
const ChildWidget({super.key});

@override
Widget build(BuildContext context) {
Expand Down
4 changes: 2 additions & 2 deletions example/lib/local_notification_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ void main() {
}

class MyApp extends StatefulWidget {
const MyApp({Key? key}) : super(key: key);
const MyApp({super.key});

@override
State<StatefulWidget> createState() {
Expand Down Expand Up @@ -49,7 +49,7 @@ class _MyAppState extends State<MyApp> {
}

class ChildWidget extends StatelessWidget {
const ChildWidget({Key? key}) : super(key: key);
const ChildWidget({super.key});

@override
Widget build(BuildContext context) {
Expand Down
4 changes: 2 additions & 2 deletions example/lib/localization_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ void main() {
}

class MyApp extends StatefulWidget {
const MyApp({Key? key}) : super(key: key);
const MyApp({super.key});

@override
State<StatefulWidget> createState() {
Expand Down Expand Up @@ -92,7 +92,7 @@ class _MyAppState extends State<MyApp> {
}

class ChildWidget extends StatelessWidget {
const ChildWidget({Key? key}) : super(key: key);
const ChildWidget({super.key});

@override
Widget build(BuildContext context) {
Expand Down
4 changes: 2 additions & 2 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ void main() {
}

class MyApp extends StatefulWidget {
const MyApp({Key? key}) : super(key: key);
const MyApp({super.key});

@override
State<StatefulWidget> createState() {
Expand Down Expand Up @@ -80,7 +80,7 @@ class _MyAppState extends State<MyApp> {
}

class ChildWidget extends StatelessWidget {
const ChildWidget({Key? key}) : super(key: key);
const ChildWidget({super.key});

@override
Widget build(BuildContext context) {
Expand Down
4 changes: 2 additions & 2 deletions example/lib/occurences_timeout_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ void main() {
}

class MyApp extends StatefulWidget {
const MyApp({Key? key}) : super(key: key);
const MyApp({super.key});

@override
State<StatefulWidget> createState() {
Expand Down Expand Up @@ -53,7 +53,7 @@ class _MyAppState extends State<MyApp> {
}

class ChildWidget extends StatelessWidget {
const ChildWidget({Key? key}) : super(key: key);
const ChildWidget({super.key});

@override
Widget build(BuildContext context) {
Expand Down
4 changes: 2 additions & 2 deletions example/lib/report_modes_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ void main() {
}

class MyApp extends StatefulWidget {
const MyApp({Key? key}) : super(key: key);
const MyApp({super.key});

@override
State<StatefulWidget> createState() {
Expand Down Expand Up @@ -53,7 +53,7 @@ class _MyAppState extends State<MyApp> {
}

class ChildWidget extends StatelessWidget {
const ChildWidget({Key? key}) : super(key: key);
const ChildWidget({super.key});

@override
Widget build(BuildContext context) {
Expand Down
4 changes: 2 additions & 2 deletions example/lib/screenshot_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ void main() async {
}

class MyApp extends StatefulWidget {
const MyApp({Key? key}) : super(key: key);
const MyApp({super.key});

@override
State<StatefulWidget> createState() {
Expand Down Expand Up @@ -71,7 +71,7 @@ class _MyAppState extends State<MyApp> {
}

class ChildWidget extends StatelessWidget {
const ChildWidget({Key? key}) : super(key: key);
const ChildWidget({super.key});

@override
Widget build(BuildContext context) {
Expand Down
4 changes: 2 additions & 2 deletions example/lib/sentry_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ void main() {
}

class MyApp extends StatefulWidget {
const MyApp({Key? key}) : super(key: key);
const MyApp({super.key});

@override
State<StatefulWidget> createState() {
Expand Down Expand Up @@ -49,7 +49,7 @@ class _MyAppState extends State<MyApp> {
}

class ChildWidget extends StatelessWidget {
const ChildWidget({Key? key}) : super(key: key);
const ChildWidget({super.key});

@override
Widget build(BuildContext context) {
Expand Down
Loading

0 comments on commit e39610c

Please sign in to comment.