localized dialog
All checks were successful
Flutter APK Build / Build Flutter APK (pull_request) Successful in 7m28s
All checks were successful
Flutter APK Build / Build Flutter APK (pull_request) Successful in 7m28s
This commit is contained in:
@@ -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),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user