Data import and export #6

Merged
marco merged 20 commits from development into main 2026-01-22 18:47:03 +01:00
Showing only changes of commit b4016e6e5b - Show all commits

View File

@@ -1,6 +1,8 @@
import 'package:flutter/material.dart' show TextButton, Theme; import 'package:flutter/material.dart' show TextButton, Theme;
import 'package:flutter/widgets.dart'; import 'package:flutter/widgets.dart';
import '../../l10n/app_localizations.dart';
class EditDialogTitle extends StatelessWidget { class EditDialogTitle extends StatelessWidget {
const EditDialogTitle({ const EditDialogTitle({
super.key, super.key,
@@ -15,11 +17,10 @@ class EditDialogTitle extends StatelessWidget {
return Row( return Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [ children: [
// TODO: Localize
if (dialogType == DialogType.bookmark) if (dialogType == DialogType.bookmark)
Text('Create Bookmark') Text(AppLocalizations.of(context)!.createBookmark)
else else
Text('Create Collection'), Text(AppLocalizations.of(context)!.createCollection),
if (onDeletePressed != null) if (onDeletePressed != null)
TextButton( TextButton(
@@ -28,7 +29,7 @@ class EditDialogTitle extends StatelessWidget {
Navigator.of(context).pop(); Navigator.of(context).pop();
}, },
child: Text( child: Text(
'Delete', AppLocalizations.of(context)!.delete,
style: TextStyle(color: Theme.of(context).colorScheme.error), style: TextStyle(color: Theme.of(context).colorScheme.error),
), ),
), ),