1
0
mirror of https://github.com/stonega/tsacdop synced 2025-02-18 04:20:37 +01:00

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: - run:
name: Run Flutter doctor name: Run Flutter doctor
command: flutter doctor command: flutter doctor
- run: echo $ENCODED_KEYSTORE | base64 -di > ${HOME}/keystore.jks - run: echo $ENCODED_KEYSTORE | base64 -di > ${HOME}/keystore.jks
- run: echo 'export KEYSTORE=${HOME}/keystore.jks' >> $BASH_ENV - run: echo 'export KEYSTORE=${HOME}/keystore.jks' >> $BASH_ENV
- run: dart tool/env.dart - run: dart tool/env.dart

View File

@ -15,8 +15,8 @@ class S {
AppLocalizationDelegate(); AppLocalizationDelegate();
static Future<S> load(Locale locale) { static Future<S> load(Locale locale) {
final String name = (locale.countryCode?.isEmpty ?? false) ? locale.languageCode : locale.toString(); final name = (locale.countryCode?.isEmpty ?? false) ? locale.languageCode : locale.toString();
final String localeName = Intl.canonicalizedLocale(name); final localeName = Intl.canonicalizedLocale(name);
return initializeMessages(localeName).then((_) { return initializeMessages(localeName).then((_) {
Intl.defaultLocale = localeName; Intl.defaultLocale = localeName;
return S(); return S();
@ -48,7 +48,7 @@ class AppLocalizationDelegate extends LocalizationsDelegate<S> {
bool _isSupported(Locale locale) { bool _isSupported(Locale locale) {
if (locale != null) { if (locale != null) {
for (Locale supportedLocale in supportedLocales) { for (var supportedLocale in supportedLocales) {
if (supportedLocale.languageCode == locale.languageCode) { if (supportedLocale.languageCode == locale.languageCode) {
return true; return true;
} }

View File

@ -562,23 +562,30 @@ class _RecentUpdateState extends State<_RecentUpdate>
); );
}), }),
) )
: IconButton( : Material(
tooltip: color: Colors.transparent,
'Add new episodes to playlist', child: IconButton(
icon: tooltip:
// Icon(Icons.playlist_add), 'Add new episodes to playlist',
SizedBox( icon:
height: 16, // Icon(Icons.playlist_add),
width: 21, SizedBox(
child: CustomPaint( height: 16,
painter: width: 21,
AddToPlaylistPainter( child: CustomPaint(
context.textTheme painter:
.bodyText1.color, AddToPlaylistPainter(
context.textTheme context
.bodyText1.color, .textTheme
))), .bodyText1
onPressed: () {}); .color,
context
.textTheme
.bodyText1
.color,
))),
onPressed: () {}),
);
}), }),
Material( Material(
color: Colors.transparent, color: Colors.transparent,