Compare commits
4 Commits
setup/upda
...
feature/12
| Author | SHA1 | Date | |
|---|---|---|---|
| 1ebcfc9e57 | |||
| 22ce742d43 | |||
| 3ceae8341b | |||
| 76ce3af643 |
35
.gitea/ISSUE_TEMPLATE/BUG_REPORT.md
Normal file
35
.gitea/ISSUE_TEMPLATE/BUG_REPORT.md
Normal file
@@ -0,0 +1,35 @@
|
||||
---
|
||||
name: Bug report
|
||||
about: Erstelle eine Meldung für etwas, das nicht Funktioniert, wie es soll.
|
||||
title: ''
|
||||
labels: 'Task/Bug'
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
|
||||
# Bug Report
|
||||
|
||||
## Beschreibung
|
||||
[Eine klare und prägnante Beschreibung des Bugs]
|
||||
|
||||
## Schritte zur Reproduktion
|
||||
1. Schritt 1
|
||||
2. Schritt 2
|
||||
3. ...
|
||||
|
||||
## Erwartetes Verhalten
|
||||
[Was hätte passieren sollen]
|
||||
|
||||
## Tatsächliches Verhalten
|
||||
[Was tatsächlich passiert ist]
|
||||
|
||||
## Screenshots/Protokolle
|
||||
[Falls zutreffend, füge Screenshots, Error Logs oder Stack Traces hinzu]
|
||||
|
||||
## Umgebung
|
||||
- Plattform: Android, iOS, Web
|
||||
- OS: [z. B. iOS 18.5, Android 14]
|
||||
- Flutter Version: [z.B. 3.35.6]
|
||||
|
||||
## Verwandte Issues
|
||||
[Verweisen Sie auf ähnliche Issues oder PRs]
|
||||
22
.gitea/ISSUE_TEMPLATE/ENHANCEMENT.md
Normal file
22
.gitea/ISSUE_TEMPLATE/ENHANCEMENT.md
Normal file
@@ -0,0 +1,22 @@
|
||||
---
|
||||
name: Enhancement
|
||||
about: Enhancements for current features
|
||||
title: ''
|
||||
labels: 'Task\Enhancement'
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
|
||||
# Enhancement
|
||||
|
||||
## Aktuelles Verhalten
|
||||
[Beschreibe die bestehende Funktionalität]
|
||||
|
||||
## Einschränkungen/Probleme
|
||||
[Was sind die aktuellen Mängel?]
|
||||
|
||||
## Vorgeschlagene Verbesserung
|
||||
[Wie kann das Problem bzw. die Einschränkung verbessert werden?]
|
||||
|
||||
## Zugehörige Issues
|
||||
[Links zu verwandten oder blockierenden Issues]
|
||||
19
.gitea/ISSUE_TEMPLATE/FEATURE.md
Normal file
19
.gitea/ISSUE_TEMPLATE/FEATURE.md
Normal file
@@ -0,0 +1,19 @@
|
||||
---
|
||||
name: Feature
|
||||
about: Neues Feature für die App
|
||||
title: ''
|
||||
labels: 'Task\Feature'
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
|
||||
# Feature
|
||||
|
||||
## Beschreibung
|
||||
[Ausführliche Erläuterung der vorgeschlagenen Funktion]
|
||||
|
||||
## Vorgeschlagene Lösung
|
||||
[Beschreibe, wie die Feature funktionieren soll]
|
||||
|
||||
## Zugehörige Issues
|
||||
[Links zu verwandten oder blockierenden Issues]
|
||||
16
.gitea/PULL_REQUEST_TEMPLATE.md
Normal file
16
.gitea/PULL_REQUEST_TEMPLATE.md
Normal file
@@ -0,0 +1,16 @@
|
||||
# [PR Titel]
|
||||
|
||||
**Zugehörige Issue(s):**
|
||||
Closes `<issue-no>`
|
||||
|
||||
## Beschreibung
|
||||
*Eine klare und prägnante Übersicht über die vorgenommenen Änderungen. Erläutere nicht nur das was gemacht wurde, sondern auch warum.*
|
||||
|
||||
## Änderungen
|
||||
- [ ] Neue Funktion X hinzugefügt
|
||||
- [ ] Bug in Komponente Y behoben
|
||||
- [ ] Modul Z für bessere Leistung refactored
|
||||
- [ ] Dependencies aktualisiert
|
||||
|
||||
## Zusätzliche Anmerkungen
|
||||
*Gibt es zusätzlichen Kontext, Einschränkungen oder Informationen, die Reviewer wissen sollten?*
|
||||
@@ -1,53 +0,0 @@
|
||||
name: Bug Report
|
||||
about: Erstelle eine Bug Report
|
||||
labels: 'Task/Bug'
|
||||
title: ''
|
||||
body:
|
||||
- type: textarea
|
||||
id: description
|
||||
attributes:
|
||||
label: Beschreibung
|
||||
description: Beschreibe klar und pregnant das Fehlerverhalten
|
||||
placeholder: |
|
||||
- Welchen Zweck erfüllt das Feature?
|
||||
- Welches Problem löst das Feature?
|
||||
- Wer profitiert davon?
|
||||
- Warum ist es wichtig?
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: reproduce
|
||||
attributes:
|
||||
label: Schritte zur Reproduktion
|
||||
description: Beschreibe, wie der Fehler reproduziert werden kann
|
||||
placeholder: |
|
||||
- 1. Schritt 1
|
||||
- 2. Schritt 2
|
||||
- 3. ...
|
||||
|
||||
- type: dropdown
|
||||
id: enviroment
|
||||
attributes:
|
||||
label: Umgebung
|
||||
description: Gebe an, auf welchen Platformen dieser Fehler auftritt
|
||||
list: false
|
||||
multiple: true
|
||||
options: ['Android', 'iOS', 'Web']
|
||||
|
||||
- type: textarea
|
||||
id: bahaviour
|
||||
attributes:
|
||||
label: Unerwünschtes Verhalten
|
||||
description: Beschreibe, was passiert ist, obwohl es nicht passieren sollte
|
||||
placeholder: Bei Verhalten X tritt folgendes Verhalten auf ...
|
||||
|
||||
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Verwandte Issues
|
||||
description: Verweise auf ähnliche Issues oder PRs
|
||||
placeholder: |
|
||||
- Knüpft an Issue #35 an
|
||||
- Ersetzt Issue #12
|
||||
- Brauch Implementierung von #43
|
||||
@@ -1,36 +0,0 @@
|
||||
name: Enhancement
|
||||
about: Erstelle ein Enhancement-Ticket
|
||||
labels: 'Task/Enhancement'
|
||||
title: ''
|
||||
body:
|
||||
- type: textarea
|
||||
id: description
|
||||
attributes:
|
||||
label: Aktuelles Verhalten
|
||||
description: Beschreibe, wie die Funktionalität aktuell gestaltet ist
|
||||
placeholder: |
|
||||
- Aktuell macht Button X folgendes ...
|
||||
- Das Problem ist, dass ...
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: solution
|
||||
attributes:
|
||||
label: Vorgeschlagene Verbesserung
|
||||
description: Beschreibe, wie das Problem bzw. die Einschränkung verbessert werden kann
|
||||
placeholder: |
|
||||
- Button X ändern, sodass ...
|
||||
- Funktion X so erweitern, dass ...
|
||||
- Design anpassen, sodass ...
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Zugehörige Issues
|
||||
description: Links zu verwandten oder blockierenden Issues
|
||||
placeholder: |
|
||||
- Knüpft an Issue #35 an
|
||||
- Ersetzt Issue #12
|
||||
- Brauch Implementierung von #43
|
||||
@@ -1,36 +0,0 @@
|
||||
name: Feature
|
||||
about: Erstelle ein Feature-Ticket
|
||||
labels: 'Task/Feature'
|
||||
title: ''
|
||||
body:
|
||||
- type: textarea
|
||||
id: description
|
||||
attributes:
|
||||
label: Beschreibung
|
||||
description: Ausführliche Erläuterung der vorgeschlagenen Funktion
|
||||
placeholder: |
|
||||
- Welchen Zweck erfüllt das Feature?
|
||||
- Welches Problem löst das Feature?
|
||||
- Wer profitiert davon?
|
||||
- Warum ist es wichtig?
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: solution
|
||||
attributes:
|
||||
label: Vorgeschlagene Lösung
|
||||
description: Beschreibe, wie das Feature funktionieren soll
|
||||
placeholder: |
|
||||
- Neues Widget, das folgendermaßen aussieht ...
|
||||
- Neue Ansicht, die folgende Inhalte hat
|
||||
- Neue Funktionsweise von Komponente XY
|
||||
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Zugehörige Issues
|
||||
description: Links zu verwandten oder blockierenden Issues
|
||||
placeholder: |
|
||||
- Knüpft an Issue #35 an
|
||||
- Ersetzt Issue #12
|
||||
- Brauch Implementierung von #43
|
||||
@@ -1,47 +0,0 @@
|
||||
name: Pull Request
|
||||
about: Vorlage für Pull Requests
|
||||
title: "WIP: [Name des Issues]"
|
||||
|
||||
body:
|
||||
- type: input
|
||||
id: related_issue
|
||||
attributes:
|
||||
label: Zugehörige Issue(s)
|
||||
description: Issues welche mit diesem Pull Request geschlossen werden sollen
|
||||
placeholder: "Closes #123"
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: description
|
||||
attributes:
|
||||
label: Beschreibung
|
||||
description: |
|
||||
Eine klare und prägnante Zusammenfassung aller vorgenommenen Änderungen.
|
||||
placeholder: |
|
||||
Was wurde geändert?
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: changes
|
||||
attributes:
|
||||
label: Änderungen
|
||||
description: Liste alle Änderungen detailiert auf, die in diesem Pull Request vorgenommen wurden.
|
||||
placeholder: |
|
||||
- Neue Funktion X hinzugefügt
|
||||
- Bug in Komponente X behoben
|
||||
- Modul X für bessere Leistung refactored
|
||||
- Dependencies aktualisiert
|
||||
|
||||
- type: textarea
|
||||
id: additional_notes
|
||||
attributes:
|
||||
label: Zusätzliche Anmerkungen
|
||||
description: |
|
||||
Gibt es zusätzlichen Kontext, Einschränkungen oder Informationen,
|
||||
die Reviewer wissen sollten?
|
||||
placeholder: |
|
||||
- Bekannte Einschränkungen
|
||||
- Offene TODOs
|
||||
- Hinweise für Reviewer
|
||||
@@ -5,6 +5,7 @@ import 'package:game_tracker/l10n/generated/app_localizations.dart';
|
||||
import 'package:game_tracker/presentation/widgets/tiles/settings_list_tile.dart';
|
||||
import 'package:game_tracker/services/data_transfer_service.dart';
|
||||
import 'package:package_info_plus/package_info_plus.dart';
|
||||
import 'package:game_tracker/presentation/widgets/custom_alert_dialog.dart';
|
||||
|
||||
class SettingsView extends StatefulWidget {
|
||||
const SettingsView({super.key});
|
||||
@@ -92,17 +93,17 @@ class _SettingsViewState extends State<SettingsView> {
|
||||
onPressed: () {
|
||||
showDialog<bool>(
|
||||
context: context,
|
||||
builder: (context) => AlertDialog(
|
||||
title: Text('${loc.delete_all_data}?'),
|
||||
content: Text(loc.this_cannot_be_undone),
|
||||
builder: (context) => CustomAlertDialog(
|
||||
title: '${loc.delete_all_data}?',
|
||||
content: loc.this_cannot_be_undone,
|
||||
actions: [
|
||||
TextButton(
|
||||
_PressableButton(
|
||||
onPressed: () => Navigator.of(context).pop(false),
|
||||
child: Text(loc.cancel),
|
||||
child: Text(loc.cancel, style: const TextStyle(color: CustomTheme.textColor)),
|
||||
),
|
||||
TextButton(
|
||||
_PressableButton(
|
||||
onPressed: () => Navigator.of(context).pop(true),
|
||||
child: Text(loc.delete),
|
||||
child: Text(loc.delete, style: TextStyle(color: CustomTheme.secondaryColor)),
|
||||
),
|
||||
],
|
||||
),
|
||||
@@ -217,3 +218,59 @@ class _SettingsViewState extends State<SettingsView> {
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
class _PressableButton extends StatefulWidget {
|
||||
final VoidCallback onPressed;
|
||||
final Widget child;
|
||||
|
||||
const _PressableButton({required this.onPressed, required this.child});
|
||||
|
||||
@override
|
||||
State<_PressableButton> createState() => _PressableButtonState();
|
||||
}
|
||||
|
||||
class _PressableButtonState extends State<_PressableButton> {
|
||||
bool _isPressed = false;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return GestureDetector(
|
||||
onTapDown: (_) => setState(() => _isPressed = true),
|
||||
onTapUp: (_) => setState(() => _isPressed = false),
|
||||
onTapCancel: () => setState(() => _isPressed = false),
|
||||
onTap: widget.onPressed,
|
||||
child: AnimatedScale(
|
||||
scale: _isPressed ? 0.95 : 1.0,
|
||||
duration: const Duration(milliseconds: 100),
|
||||
child: AnimatedOpacity(
|
||||
opacity: _isPressed ? 0.6 : 1.0,
|
||||
duration: const Duration(milliseconds: 100),
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
child: widget.child,
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
TextButton(
|
||||
style: TextButton.styleFrom(
|
||||
splashFactory: NoSplash.splashFactory,
|
||||
overlayColor: Colors.transparent,
|
||||
),
|
||||
onPressed: () => Navigator.of(context).pop(false),
|
||||
child: Text(loc.cancel, style: const TextStyle(color: CustomTheme.textColor),),
|
||||
),
|
||||
TextButton(
|
||||
style: TextButton.styleFrom(
|
||||
splashFactory: NoSplash.splashFactory,
|
||||
overlayColor: Colors.transparent,
|
||||
),
|
||||
onPressed: () => Navigator.of(context).pop(true),
|
||||
child: Text(loc.delete, style: TextStyle(color: CustomTheme.secondaryColor),),
|
||||
),
|
||||
*/
|
||||
|
||||
30
lib/presentation/widgets/custom_alert_dialog.dart
Normal file
30
lib/presentation/widgets/custom_alert_dialog.dart
Normal file
@@ -0,0 +1,30 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:game_tracker/core/custom_theme.dart';
|
||||
|
||||
class CustomAlertDialog extends StatelessWidget {
|
||||
final String title;
|
||||
final String content;
|
||||
final List<Widget> actions;
|
||||
|
||||
const CustomAlertDialog({
|
||||
super.key,
|
||||
required this.title,
|
||||
required this.content,
|
||||
required this.actions,
|
||||
});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return AlertDialog(
|
||||
title: Text(title, style: const TextStyle(color: CustomTheme.textColor,),),
|
||||
content: Text(content, style: const TextStyle(color: CustomTheme.textColor),),
|
||||
actions: actions,
|
||||
backgroundColor: CustomTheme.boxColor,
|
||||
actionsAlignment: MainAxisAlignment.spaceAround,
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: CustomTheme.standardBorderRadiusAll,
|
||||
side: BorderSide(color: CustomTheme.boxBorder),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user