Compare commits
14 Commits
8791b5296e
...
setup/upda
| Author | SHA1 | Date | |
|---|---|---|---|
| fed5c55dd4 | |||
| c157644b44 | |||
| 5a5898787f | |||
| 9d3a45c01d | |||
| 485ac87fdb | |||
| 758f1e6c3a | |||
| 906c8d8450 | |||
| 000bdc8cbc | |||
| 497f30421d | |||
| adedb85eb2 | |||
| 2a72332bcd | |||
| 7aa41abe61 | |||
| e1263d51ad | |||
| 6f0e5ba5c2 |
@@ -1,35 +0,0 @@
|
||||
---
|
||||
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]
|
||||
@@ -1,22 +0,0 @@
|
||||
---
|
||||
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]
|
||||
@@ -1,19 +0,0 @@
|
||||
---
|
||||
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]
|
||||
@@ -1,16 +0,0 @@
|
||||
# [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?*
|
||||
51
.gitea/issue_template/bug.yaml
Normal file
51
.gitea/issue_template/bug.yaml
Normal file
@@ -0,0 +1,51 @@
|
||||
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: |
|
||||
- Was genau ist das unerwünschte Verhalten?
|
||||
- Welche Auswirkungen hat der Fehler?
|
||||
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
|
||||
36
.gitea/issue_template/enhancement.yaml
Normal file
36
.gitea/issue_template/enhancement.yaml
Normal file
@@ -0,0 +1,36 @@
|
||||
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
|
||||
36
.gitea/issue_template/feature.yaml
Normal file
36
.gitea/issue_template/feature.yaml
Normal file
@@ -0,0 +1,36 @@
|
||||
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
|
||||
47
.gitea/pull_request_template.yaml
Normal file
47
.gitea/pull_request_template.yaml
Normal file
@@ -0,0 +1,47 @@
|
||||
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
|
||||
@@ -17,7 +17,7 @@
|
||||
"data_successfully_imported": "Daten erfolgreich importiert",
|
||||
"days_ago": "vor {count} Tagen",
|
||||
"delete": "Löschen",
|
||||
"delete_all_data": "Alle Daten löschen?",
|
||||
"delete_all_data": "Alle Daten löschen",
|
||||
"error_creating_group": "Fehler beim Erstellen der Gruppe, bitte erneut versuchen",
|
||||
"error_reading_file": "Fehler beim Lesen der Datei",
|
||||
"export_canceled": "Export abgebrochen",
|
||||
|
||||
@@ -277,7 +277,7 @@
|
||||
"data_successfully_imported": "Data successfully imported",
|
||||
"days_ago": "{count} days ago",
|
||||
"delete": "Delete",
|
||||
"delete_all_data": "Delete all data?",
|
||||
"delete_all_data": "Delete all data",
|
||||
"error_creating_group": "Error while creating group, please try again",
|
||||
"error_reading_file": "Error reading file",
|
||||
"export_canceled": "Export canceled",
|
||||
|
||||
@@ -209,7 +209,7 @@ abstract class AppLocalizations {
|
||||
/// Confirmation dialog for deleting all data
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Delete all data?'**
|
||||
/// **'Delete all data'**
|
||||
String get delete_all_data;
|
||||
|
||||
/// Error message when group creation fails
|
||||
|
||||
@@ -67,7 +67,7 @@ class AppLocalizationsDe extends AppLocalizations {
|
||||
String get delete => 'Löschen';
|
||||
|
||||
@override
|
||||
String get delete_all_data => 'Alle Daten löschen?';
|
||||
String get delete_all_data => 'Alle Daten löschen';
|
||||
|
||||
@override
|
||||
String get error_creating_group =>
|
||||
|
||||
@@ -67,7 +67,7 @@ class AppLocalizationsEn extends AppLocalizations {
|
||||
String get delete => 'Delete';
|
||||
|
||||
@override
|
||||
String get delete_all_data => 'Delete all data?';
|
||||
String get delete_all_data => 'Delete all data';
|
||||
|
||||
@override
|
||||
String get error_creating_group =>
|
||||
|
||||
@@ -140,7 +140,11 @@ class _ChooseGroupViewState extends State<ChooseGroupView> {
|
||||
filteredGroups.clear();
|
||||
filteredGroups.addAll(
|
||||
widget.groups.where(
|
||||
(group) => group.name.toLowerCase().contains(query.toLowerCase()),
|
||||
(group) =>
|
||||
group.name.toLowerCase().contains(query.toLowerCase()) ||
|
||||
group.members.any(
|
||||
(player) => player.name.toLowerCase().contains(query.toLowerCase()),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@ import 'package:game_tracker/core/enums.dart';
|
||||
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';
|
||||
|
||||
class SettingsView extends StatefulWidget {
|
||||
const SettingsView({super.key});
|
||||
@@ -13,9 +14,16 @@ class SettingsView extends StatefulWidget {
|
||||
}
|
||||
|
||||
class _SettingsViewState extends State<SettingsView> {
|
||||
PackageInfo _packageInfo = PackageInfo(
|
||||
appName: 'n.A.',
|
||||
packageName: 'n.A.',
|
||||
version: 'n.A.',
|
||||
buildNumber: 'n.A.',
|
||||
);
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
_initPackageInfo();
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -25,102 +33,107 @@ class _SettingsViewState extends State<SettingsView> {
|
||||
child: Scaffold(
|
||||
appBar: AppBar(backgroundColor: CustomTheme.backgroundColor),
|
||||
backgroundColor: CustomTheme.backgroundColor,
|
||||
body: LayoutBuilder(
|
||||
builder: (BuildContext context, BoxConstraints constraints) =>
|
||||
SingleChildScrollView(
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.start,
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Padding(
|
||||
padding: const EdgeInsets.fromLTRB(24, 0, 24, 10),
|
||||
child: Text(
|
||||
textAlign: TextAlign.start,
|
||||
loc.menu,
|
||||
style: const TextStyle(
|
||||
fontSize: 28,
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
),
|
||||
),
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(
|
||||
horizontal: 24,
|
||||
vertical: 10,
|
||||
),
|
||||
child: Text(
|
||||
textAlign: TextAlign.start,
|
||||
loc.settings,
|
||||
style: const TextStyle(
|
||||
fontSize: 22,
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
),
|
||||
),
|
||||
SettingsListTile(
|
||||
title: loc.export_data,
|
||||
icon: Icons.upload_rounded,
|
||||
suffixWidget: const Icon(Icons.arrow_forward_ios, size: 16),
|
||||
onPressed: () async {
|
||||
final String json =
|
||||
await DataTransferService.getAppDataAsJson(context);
|
||||
final result = await DataTransferService.exportData(
|
||||
json,
|
||||
'game_tracker-data',
|
||||
);
|
||||
if (!context.mounted) return;
|
||||
showExportSnackBar(context: context, result: result);
|
||||
},
|
||||
),
|
||||
SettingsListTile(
|
||||
title: loc.import_data,
|
||||
icon: Icons.download_rounded,
|
||||
suffixWidget: const Icon(Icons.arrow_forward_ios, size: 16),
|
||||
onPressed: () async {
|
||||
final result = await DataTransferService.importData(
|
||||
context,
|
||||
);
|
||||
if (!context.mounted) return;
|
||||
showImportSnackBar(context: context, result: result);
|
||||
},
|
||||
),
|
||||
SettingsListTile(
|
||||
title: loc.delete_all_data,
|
||||
icon: Icons.delete_rounded,
|
||||
suffixWidget: const Icon(Icons.arrow_forward_ios, size: 16),
|
||||
onPressed: () {
|
||||
showDialog<bool>(
|
||||
context: context,
|
||||
builder: (context) => AlertDialog(
|
||||
title: Text(loc.delete_all_data),
|
||||
content: Text(loc.this_cannot_be_undone),
|
||||
actions: [
|
||||
TextButton(
|
||||
onPressed: () => Navigator.of(context).pop(false),
|
||||
child: Text(loc.cancel),
|
||||
),
|
||||
TextButton(
|
||||
onPressed: () => Navigator.of(context).pop(true),
|
||||
child: Text(loc.delete),
|
||||
),
|
||||
],
|
||||
),
|
||||
).then((confirmed) {
|
||||
if (confirmed == true && context.mounted) {
|
||||
DataTransferService.deleteAllData(context);
|
||||
showSnackbar(
|
||||
context: context,
|
||||
message: AppLocalizations.of(
|
||||
context,
|
||||
).data_successfully_deleted,
|
||||
);
|
||||
}
|
||||
});
|
||||
},
|
||||
),
|
||||
],
|
||||
body: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.start,
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Padding(
|
||||
padding: const EdgeInsets.fromLTRB(24, 0, 24, 10),
|
||||
child: Text(
|
||||
textAlign: TextAlign.start,
|
||||
loc.menu,
|
||||
style: const TextStyle(
|
||||
fontSize: 28,
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
),
|
||||
),
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 24, vertical: 10),
|
||||
child: Text(
|
||||
textAlign: TextAlign.start,
|
||||
loc.settings,
|
||||
style: const TextStyle(
|
||||
fontSize: 22,
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
),
|
||||
),
|
||||
SettingsListTile(
|
||||
title: loc.export_data,
|
||||
icon: Icons.upload_rounded,
|
||||
suffixWidget: const Icon(Icons.arrow_forward_ios, size: 16),
|
||||
onPressed: () async {
|
||||
final String json = await DataTransferService.getAppDataAsJson(
|
||||
context,
|
||||
);
|
||||
final result = await DataTransferService.exportData(
|
||||
json,
|
||||
'game_tracker-data',
|
||||
);
|
||||
if (!context.mounted) return;
|
||||
showExportSnackBar(context: context, result: result);
|
||||
},
|
||||
),
|
||||
SettingsListTile(
|
||||
title: loc.import_data,
|
||||
icon: Icons.download_rounded,
|
||||
suffixWidget: const Icon(Icons.arrow_forward_ios, size: 16),
|
||||
onPressed: () async {
|
||||
final result = await DataTransferService.importData(context);
|
||||
if (!context.mounted) return;
|
||||
showImportSnackBar(context: context, result: result);
|
||||
},
|
||||
),
|
||||
SettingsListTile(
|
||||
title: loc.delete_all_data,
|
||||
icon: Icons.delete_rounded,
|
||||
suffixWidget: const Icon(Icons.arrow_forward_ios, size: 16),
|
||||
onPressed: () {
|
||||
showDialog<bool>(
|
||||
context: context,
|
||||
builder: (context) => AlertDialog(
|
||||
title: Text('${loc.delete_all_data}?'),
|
||||
content: Text(loc.this_cannot_be_undone),
|
||||
actions: [
|
||||
TextButton(
|
||||
onPressed: () => Navigator.of(context).pop(false),
|
||||
child: Text(loc.cancel),
|
||||
),
|
||||
TextButton(
|
||||
onPressed: () => Navigator.of(context).pop(true),
|
||||
child: Text(loc.delete),
|
||||
),
|
||||
],
|
||||
),
|
||||
).then((confirmed) {
|
||||
if (confirmed == true && context.mounted) {
|
||||
DataTransferService.deleteAllData(context);
|
||||
showSnackbar(
|
||||
context: context,
|
||||
message: AppLocalizations.of(
|
||||
context,
|
||||
).data_successfully_deleted,
|
||||
);
|
||||
}
|
||||
});
|
||||
},
|
||||
),
|
||||
const Spacer(),
|
||||
Padding(
|
||||
padding: const EdgeInsets.all(20),
|
||||
child: Center(
|
||||
child: Text(
|
||||
'Version ${_packageInfo.version} (${_packageInfo.buildNumber})',
|
||||
style: TextStyle(
|
||||
color: Colors.grey.shade600,
|
||||
fontSize: 14,
|
||||
fontWeight: FontWeight.w600,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
@@ -196,4 +209,11 @@ class _SettingsViewState extends State<SettingsView> {
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Future<void> _initPackageInfo() async {
|
||||
final info = await PackageInfo.fromPlatform();
|
||||
setState(() {
|
||||
_packageInfo = info;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
name: game_tracker
|
||||
description: "Game Tracking App for Card Games"
|
||||
publish_to: 'none'
|
||||
version: 0.0.3+93
|
||||
version: 0.0.4+101
|
||||
|
||||
environment:
|
||||
sdk: ^3.8.1
|
||||
@@ -22,6 +22,7 @@ dependencies:
|
||||
intl: any
|
||||
flutter_localizations:
|
||||
sdk: flutter
|
||||
package_info_plus: ^9.0.0
|
||||
|
||||
dev_dependencies:
|
||||
flutter_test:
|
||||
|
||||
Reference in New Issue
Block a user