add missing localization string

This commit is contained in:
Daniel Borges 2019-08-08 16:05:19 -03:00
parent fec650f970
commit b15a40e400
2 changed files with 4 additions and 4 deletions

View File

@ -28,6 +28,7 @@
"search_results_add": "Add to service", "search_results_add": "Add to service",
"search_results_add_and_go": "Add & Go to service", "search_results_add_and_go": "Add & Go to service",
"service_list_empty": "Any item added to service.\nPlease, add a new service item tapping the add button.", "service_list_empty": "Any item added to service.\nPlease, add a new service item tapping the add button.",
"slides_list_empty": "Any service item selected.\nPlease, select a service item in \"SERVICE\" tab.",
"settings": "Settings", "settings": "Settings",
"settings_server_ip": "Server IP", "settings_server_ip": "Server IP",
"settings_server_port": "Server port", "settings_server_port": "Server port",

View File

@ -22,6 +22,7 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import '../configurations/app_localizations.dart';
import '../models/slide_item.dart'; import '../models/slide_item.dart';
class SlidesListView extends StatefulWidget { class SlidesListView extends StatefulWidget {
@ -116,7 +117,7 @@ class _SlidesListViewState extends State<SlidesListView> {
'I am Yours and You are mine', 'I am Yours and You are mine',
), ),
]; ];
// slidesItems = []; slidesItems = [];
super.initState(); super.initState();
} }
@ -129,9 +130,7 @@ class _SlidesListViewState extends State<SlidesListView> {
maxHeight: 100, maxHeight: 100,
maxWidth: 250, maxWidth: 250,
), ),
child: Text( child: Text(AppLocalizations.of(context).translate('slides_list_empty'),
'Any service item selected.\n' +
'Please, select a service item in "SERVICE" tab.',
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: TextStyle(color: Colors.black38), style: TextStyle(color: Colors.black38),
), ),