[fix] Added basic locatlization
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
|
||||
import '../l10n/app_localizations.dart';
|
||||
import '../model/bookmark.dart';
|
||||
import '../model/maps_link_metadata.dart';
|
||||
import '../service/bookmarks_provider.dart';
|
||||
@@ -89,13 +90,15 @@ class _CollectionPageState extends State<CollectionPage> {
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: selectedMapsLink != null
|
||||
? Text('Add to ${collection.name}')
|
||||
? Text(
|
||||
AppLocalizations.of(context)!.addToCollection(collection.name),
|
||||
)
|
||||
: Text(collection.name),
|
||||
actions: [
|
||||
if (selectedMapsLink != null)
|
||||
TextButton(
|
||||
onPressed: () => provider.removeCurrentMapsLink(),
|
||||
child: Text('Cancel'),
|
||||
child: Text(AppLocalizations.of(context)!.cancel),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user