Bearbeiten und Löschen von Matches #171

Merged
sneeex merged 64 commits from feature/120-bearbeiten-und-loeschen-von-matches into development 2026-03-08 08:28:10 +00:00
7 changed files with 30 additions and 11 deletions
Showing only changes of commit 664af7ffee - Show all commits

View File

@@ -20,7 +20,5 @@
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>MinimumOSVersion</key>
<string>13.0</string>
</dict>
</plist>

View File

@@ -2,12 +2,15 @@ import Flutter
import UIKit
@main
@objc class AppDelegate: FlutterAppDelegate {
@objc class AppDelegate: FlutterAppDelegate, FlutterImplicitEngineDelegate {
override func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
GeneratedPluginRegistrant.register(with: self)
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
}
func didInitializeImplicitFlutterEngine(_ engineBridge: FlutterImplicitEngineBridge) {
GeneratedPluginRegistrant.register(with: engineBridge.pluginRegistry)
}
}

View File

@@ -31,6 +31,27 @@
</array>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UIApplicationSceneManifest</key>
<dict>
<key>UIApplicationSupportsMultipleScenes</key>
<false/>
<key>UISceneConfigurations</key>
<dict>
<key>UIWindowSceneSessionRoleApplication</key>
<array>
<dict>
<key>UISceneClassName</key>
<string>UIWindowScene</string>
<key>UISceneConfigurationName</key>
<string>flutter</string>
<key>UISceneDelegateClassName</key>
<string>FlutterSceneDelegate</string>
<key>UISceneStoryboardFile</key>
<string>Main</string>
</dict>
</array>
</dict>
</dict>
<key>UIApplicationSupportsIndirectInputEvents</key>
<true/>
<key>UILaunchStoryboardName</key>

View File

@@ -141,7 +141,7 @@ class _CustomNavigationBarState extends State<CustomNavigationBar>
}
/// Returns the title of the current tab based on [currentIndex].
String _currentTabTitle(context) {
String _currentTabTitle(BuildContext context) {
final loc = AppLocalizations.of(context);
switch (currentIndex) {
case 0:

View File

@@ -266,7 +266,7 @@ class _MatchDetailViewState extends State<MatchDetailView> {
/// Callback for when the match is updated in the edit view,
/// updates the match in this view
onMatchUpdated(editedMatch) {
void onMatchUpdated(Match editedMatch) {
setState(() {
match = editedMatch;
});

View File

@@ -47,10 +47,7 @@ class _AppSkeletonState extends State<AppSkeleton> {
: (Widget? currentChild, List<Widget> previousChildren) {
return Stack(
alignment: Alignment.topCenter,
children: [
...previousChildren,
if (currentChild != null) currentChild,
],
children: [...previousChildren, ?currentChild],
flixcoo marked this conversation as resolved
Review

was macht das?

was macht das?
Review

Das ist ein Null-aware Spread Operator, d.h. das Element currentChild wird nur in die Liste eingefügt, wenn es nicht null ist. Der Ausdruck ist Äquivalent zu

children: [
   ...previousChildren,
   if (currentChild != null) currentChild,
],

Siehe Discord-Nachricht bzw. Dart Documentation

Das ist ein Null-aware Spread Operator, d.h. das Element `currentChild` wird nur in die Liste eingefügt, wenn es nicht `null` ist. Der Ausdruck ist Äquivalent zu ```dart children: [ ...previousChildren, if (currentChild != null) currentChild, ], ``` Siehe [Discord-Nachricht](https://discord.com/channels/921763177245605888/922566373455048875/1479868438812950661) bzw. [Dart Documentation](https://dart.dev/language/collections#null-aware-element)
);
},
),

View File

@@ -34,7 +34,7 @@ dev_dependencies:
build_runner: ^2.5.4
dart_pubspec_licenses: ^3.0.14
drift_dev: ^2.27.0
flutter_lints: ^5.0.0
flutter_lints: ^6.0.0
flutter:
uses-material-design: true