added new analyzer exclude options and fixed naming in sorting filter types

This commit is contained in:
Username1548
2024-11-15 19:58:10 +07:00
parent 3f5ba959ff
commit 92c1bb1a91
9 changed files with 169 additions and 75 deletions

View File

@@ -19,7 +19,7 @@ class S {
static S get current {
assert(_current != null,
'No instance of S was loaded. Try to initialize the S delegate before accessing S.current.',);
'No instance of S was loaded. Try to initialize the S delegate before accessing S.current.');
return _current!;
}
@@ -42,7 +42,7 @@ class S {
static S of(BuildContext context) {
final instance = S.maybeOf(context);
assert(instance != null,
'No instance of S present in the widget tree. Did you add S.delegate in localizationsDelegates?',);
'No instance of S present in the widget tree. Did you add S.delegate in localizationsDelegates?');
return instance!;
}
@@ -1409,6 +1409,66 @@ class S {
args: [],
);
}
/// `Популярные`
String get popular {
return Intl.message(
'Популярные',
name: 'popular',
desc: '',
args: [],
);
}
/// `Самые новые`
String get most_new {
return Intl.message(
'Самые новые',
name: 'most_new',
desc: '',
args: [],
);
}
/// `Самые старые`
String get most_old {
return Intl.message(
'Самые старые',
name: 'most_old',
desc: '',
args: [],
);
}
/// `Больше всего лайкнутых`
String get most_liked {
return Intl.message(
'Больше всего лайкнутых',
name: 'most_liked',
desc: '',
args: [],
);
}
/// `Больше всего пройденных`
String get most_copleted {
return Intl.message(
'Больше всего пройденных',
name: 'most_copleted',
desc: '',
args: [],
);
}
/// `По умолчянию`
String get by_default {
return Intl.message(
'По умолчянию',
name: 'by_default',
desc: '',
args: [],
);
}
}
class AppLocalizationDelegate extends LocalizationsDelegate<S> {