Bug fixed

This commit is contained in:
stonegate 2020-05-16 11:14:32 +08:00
parent a62eda51c9
commit 0d15fafa27
3 changed files with 27 additions and 21 deletions

View File

@ -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

View File

@ -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;
}

View File

@ -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,