Bug fixed
This commit is contained in:
parent
a62eda51c9
commit
0d15fafa27
|
@ -12,7 +12,6 @@ jobs:
|
|||
- run:
|
||||
name: Run Flutter doctor
|
||||
command: flutter doctor
|
||||
|
||||
- run: echo $ENCODED_KEYSTORE | base64 -di > ${HOME}/keystore.jks
|
||||
- run: echo 'export KEYSTORE=${HOME}/keystore.jks' >> $BASH_ENV
|
||||
- run: dart tool/env.dart
|
||||
|
|
|
@ -15,8 +15,8 @@ class S {
|
|||
AppLocalizationDelegate();
|
||||
|
||||
static Future<S> load(Locale locale) {
|
||||
final String name = (locale.countryCode?.isEmpty ?? false) ? locale.languageCode : locale.toString();
|
||||
final String localeName = Intl.canonicalizedLocale(name);
|
||||
final name = (locale.countryCode?.isEmpty ?? false) ? locale.languageCode : locale.toString();
|
||||
final localeName = Intl.canonicalizedLocale(name);
|
||||
return initializeMessages(localeName).then((_) {
|
||||
Intl.defaultLocale = localeName;
|
||||
return S();
|
||||
|
@ -48,7 +48,7 @@ class AppLocalizationDelegate extends LocalizationsDelegate<S> {
|
|||
|
||||
bool _isSupported(Locale locale) {
|
||||
if (locale != null) {
|
||||
for (Locale supportedLocale in supportedLocales) {
|
||||
for (var supportedLocale in supportedLocales) {
|
||||
if (supportedLocale.languageCode == locale.languageCode) {
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -562,23 +562,30 @@ class _RecentUpdateState extends State<_RecentUpdate>
|
|||
);
|
||||
}),
|
||||
)
|
||||
: IconButton(
|
||||
tooltip:
|
||||
'Add new episodes to playlist',
|
||||
icon:
|
||||
// Icon(Icons.playlist_add),
|
||||
SizedBox(
|
||||
height: 16,
|
||||
width: 21,
|
||||
child: CustomPaint(
|
||||
painter:
|
||||
AddToPlaylistPainter(
|
||||
context.textTheme
|
||||
.bodyText1.color,
|
||||
context.textTheme
|
||||
.bodyText1.color,
|
||||
))),
|
||||
onPressed: () {});
|
||||
: Material(
|
||||
color: Colors.transparent,
|
||||
child: IconButton(
|
||||
tooltip:
|
||||
'Add new episodes to playlist',
|
||||
icon:
|
||||
// Icon(Icons.playlist_add),
|
||||
SizedBox(
|
||||
height: 16,
|
||||
width: 21,
|
||||
child: CustomPaint(
|
||||
painter:
|
||||
AddToPlaylistPainter(
|
||||
context
|
||||
.textTheme
|
||||
.bodyText1
|
||||
.color,
|
||||
context
|
||||
.textTheme
|
||||
.bodyText1
|
||||
.color,
|
||||
))),
|
||||
onPressed: () {}),
|
||||
);
|
||||
}),
|
||||
Material(
|
||||
color: Colors.transparent,
|
||||
|
|
Loading…
Reference in New Issue