Apply dart auto fixes
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class ListItemNavigator extends StatelessWidget {
|
||||
const ListItemNavigator({Key? key, required this.icon, required this.text, required this.target, this.onLongPress, this.arrow = true}) : super(key: key);
|
||||
const ListItemNavigator({super.key, required this.icon, required this.text, required this.target, this.onLongPress, this.arrow = true});
|
||||
|
||||
final IconData icon;
|
||||
final String text;
|
||||
|
@ -2,7 +2,7 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class About extends StatelessWidget {
|
||||
const About({Key? key}) : super(key: key);
|
||||
const About({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
@ -5,7 +5,7 @@ import 'package:flutter/material.dart';
|
||||
|
||||
class AnimatedTime extends StatefulWidget {
|
||||
final Duration Function() callback;
|
||||
const AnimatedTime({Key? key, required this.callback}) : super(key: key);
|
||||
const AnimatedTime({super.key, required this.callback});
|
||||
|
||||
@override
|
||||
State<AnimatedTime> createState() => _AnimatedTimeState();
|
||||
|
@ -8,7 +8,7 @@ class ConfirmDialog extends StatelessWidget {
|
||||
final String confirmButton;
|
||||
final String cancelButton;
|
||||
final void Function() onConfirm;
|
||||
const ConfirmDialog({Key? key, required this.title, this.content = "", this.icon, this.confirmButton = "Ok", this.cancelButton = "Abbrechen", required this.onConfirm}) : super(key: key);
|
||||
const ConfirmDialog({super.key, required this.title, this.content = "", this.icon, this.confirmButton = "Ok", this.cancelButton = "Abbrechen", required this.onConfirm});
|
||||
|
||||
void asDialog(BuildContext context) {
|
||||
showDialog(context: context, builder: (context) => build(context));
|
||||
|
@ -12,7 +12,7 @@ import 'jsonViewer.dart';
|
||||
|
||||
class CacheView extends StatefulWidget {
|
||||
final collection = "MarianumMobile";
|
||||
const CacheView({Key? key}) : super(key: key);
|
||||
const CacheView({super.key});
|
||||
|
||||
@override
|
||||
State<CacheView> createState() => _CacheViewState();
|
||||
|
@ -6,7 +6,7 @@ class JsonViewer extends StatelessWidget {
|
||||
final String title;
|
||||
final Map<String, dynamic> data;
|
||||
|
||||
const JsonViewer({Key? key, required this.title, required this.data}) : super(key: key);
|
||||
const JsonViewer({super.key, required this.title, required this.data});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
@ -4,7 +4,7 @@ import 'dart:async';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class LoadingSpinner extends StatefulWidget {
|
||||
const LoadingSpinner({Key? key}) : super(key: key);
|
||||
const LoadingSpinner({super.key});
|
||||
|
||||
@override
|
||||
State<LoadingSpinner> createState() => _LoadingSpinnerState();
|
||||
|
@ -4,7 +4,7 @@ class PlaceholderView extends StatelessWidget {
|
||||
final IconData icon;
|
||||
final String text;
|
||||
final Widget? button;
|
||||
const PlaceholderView({Key? key, required this.icon, required this.text, this.button}) : super(key: key);
|
||||
const PlaceholderView({super.key, required this.icon, required this.text, this.button});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
Reference in New Issue
Block a user