refactoring

security update
This commit is contained in:
Mguy13 2022-12-25 22:17:59 +01:00
parent 1747ab0245
commit 78fe9e7b09
39 changed files with 289 additions and 132 deletions

View file

@ -28,6 +28,9 @@ class MessageLookup extends MessageLookupByLibrary {
final messages = _notInlinedMessages(_notInlinedMessages);
static Map<String, Function> _notInlinedMessages(_) => <String, Function>{
"appTitle": MessageLookupByLibrary.simpleMessage("MC Gallery App"),
"errorPageMessage": MessageLookupByLibrary.simpleMessage(
"Oopsie, there has been an error. Hang tight till we do something about it."),
"gallery": MessageLookupByLibrary.simpleMessage("Gallery"),
"imageCarousel": MessageLookupByLibrary.simpleMessage("Image carousel"),
"imageDetails": MessageLookupByLibrary.simpleMessage(

View file

@ -50,6 +50,16 @@ class Strings {
return Localizations.of<Strings>(context, Strings);
}
/// `MC Gallery App`
String get appTitle {
return Intl.message(
'MC Gallery App',
name: 'appTitle',
desc: '',
args: [],
);
}
/// `Something went wrong`
String get somethingWentWrong {
return Intl.message(
@ -60,6 +70,16 @@ class Strings {
);
}
/// `Oopsie, there has been an error. Hang tight till we do something about it.`
String get errorPageMessage {
return Intl.message(
'Oopsie, there has been an error. Hang tight till we do something about it.',
name: 'errorPageMessage',
desc: '',
args: [],
);
}
/// `Image {imageNumber}: size={imageSide}`
String imageNameFetch(Object imageNumber, Object imageSide) {
return Intl.message(

View file

@ -1,6 +1,8 @@
{
"@@locale": "en",
"appTitle": "MC Gallery App",
"somethingWentWrong": "Something went wrong",
"errorPageMessage": "Oopsie, there has been an error. Hang tight till we do something about it.",
"imageNameFetch": "Image {imageNumber}: size={imageSide}",
"imageNameSearch": "Search term '{searchStr}' result: Image {imageNumber}",