Closed
Description
I use quick_actions (https://pub.dev/packages/quick_actions) package for my Android app. It works fine in debug mode. However, in release mode, the app shortcuts doesn't show the drawable icons instead shows the black-colored box.
Debug Version | Release Version (from Play Store) |
---|---|
![]() |
![]() |
I have included my PNGs files in all following folders:
- /android/app/src/main/res/drawable/
- /android/app/src/main/res/mipmap-*/
quick_actions: ^0.4.0+2
@override
void initState() {
super.initState();
final quickActions = QuickActions();
quickActions.initialize((String shortcutType) {
switch (shortcutType) {
case 'catat_pemasukan':
case 'catat_pengeluaran':
case 'catat_transaksi':
if (shortcutType == 'catat_pengeluaran') {
initData = {'tipeTransaksi': TipeTransaksi.KREDIT};
} else {
initData = {'tipeTransaksi': TipeTransaksi.DEBIT};
}
_catatItem('manual');
break;
case 'catat_rencana':
_catatRencana();
break;
case 'pindai_struk':
_catatItem('ai');
break;
}
});
quickActions.setShortcutItems(<ShortcutItem>[
ShortcutItem(
type: 'catat_transaksi',
localizedTitle: 'Catat Transaksi',
icon: 'ic_pen',
),
ShortcutItem(
type: 'catat_rencana',
localizedTitle: 'Catat Rencana',
icon: 'ic_calendar'
),
ShortcutItem(
type: 'pindai_struk',
localizedTitle: 'Pindai Struk',
icon: 'ic_shutter',
),
]);
}
flutter doctor -v
result:
[√] Flutter (Channel master, v1.15.4-pre.140, on Microsoft Windows [Version 10.0.18362.657], locale en-ID)
• Flutter version 1.15.4-pre.140 at G:\Android\Flutter\flutter
• Framework revision 1d4667bb38 (2 days ago), 2020-02-24 08:56:02 +0530
• Engine revision f2f8c342be
• Dart version 2.8.0 (build 2.8.0-dev.9.0 0f141be8bd)
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at G:\Android\Sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.2
• Java binary at: G:\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
[√] Android Studio (version 3.4)
• Android Studio at G:\Android\Android Studio
• Flutter plugin version 35.2.1
• Dart plugin version 183.6270
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
[√] Connected device (2 available)
• Chrome • chrome • web-javascript • Google Chrome 79.0.3945.130
• Web Server • web-server • web-javascript • Flutter Tools
• No issues found!
Where am I wrong? How to solve this? Answers appreciated.