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