diff --git a/app_petty_cash/android/app/src/main/AndroidManifest.xml b/app_petty_cash/android/app/src/main/AndroidManifest.xml index 9404999..0778a2b 100644 --- a/app_petty_cash/android/app/src/main/AndroidManifest.xml +++ b/app_petty_cash/android/app/src/main/AndroidManifest.xml @@ -1,13 +1,14 @@ + + > + \ No newline at end of file diff --git a/app_petty_cash/lib/repository/transaksi_repository.dart b/app_petty_cash/lib/repository/transaksi_repository.dart index a8fd128..5c90c8f 100644 --- a/app_petty_cash/lib/repository/transaksi_repository.dart +++ b/app_petty_cash/lib/repository/transaksi_repository.dart @@ -100,6 +100,7 @@ class TransaksiRepository extends BaseRepository { 'userid': userid, 'sender': sender, 'companyid': M_CompanyID, + 'base64File': base64file, 'fileName': fileName, 'fileSize': fileSize, 'fileEkstension': fileExtension diff --git a/app_petty_cash/lib/screen/home/home_screen.dart b/app_petty_cash/lib/screen/home/home_screen.dart index 2b57fa1..9400a73 100644 --- a/app_petty_cash/lib/screen/home/home_screen.dart +++ b/app_petty_cash/lib/screen/home/home_screen.dart @@ -473,28 +473,14 @@ class HomeScreen extends HookConsumerWidget { fontSize: 14, ), ), - Text( - ' by : '+listTransaksiHome - .value[idx].usertransaksi - .toString(), - overflow: - TextOverflow.ellipsis, - style: Constant.body1( - context: context) - .copyWith( - fontWeight: - FontWeight.normal, - fontStyle: FontStyle.italic, - color: Constant.pcBtnBackgroundColor, - fontSize: 14, - ), - ), Expanded( child: Container( child: Text( - ' by : '+listTransaksiHome - .value[idx].usertransaksi - .toString(), + ' by : ' + + listTransaksiHome + .value[idx] + .usertransaksi + .toString(), overflow: TextOverflow.ellipsis, style: Constant.body1( @@ -502,8 +488,10 @@ class HomeScreen extends HookConsumerWidget { .copyWith( fontWeight: FontWeight.normal, - fontStyle: FontStyle.italic, - color: Constant.pcBtnBackgroundColor, + fontStyle: + FontStyle.italic, + color: Constant + .pcBtnBackgroundColor, fontSize: 14, ), ), diff --git a/app_petty_cash/pubspec.lock b/app_petty_cash/pubspec.lock index 7afe483..32e6cf8 100644 --- a/app_petty_cash/pubspec.lock +++ b/app_petty_cash/pubspec.lock @@ -278,6 +278,14 @@ packages: url: "https://pub.dev" source: hosted version: "1.0.4" + flutter_share: + dependency: "direct main" + description: + name: flutter_share + sha256: ae12c1cea13b35926a109824ffac601531e40cb94ad53eeae58625eceb3eaaaa + url: "https://pub.dev" + source: hosted + version: "2.0.0" flutter_svg: dependency: "direct main" description: @@ -893,6 +901,14 @@ packages: url: "https://pub.dev" source: hosted version: "2.0.17" + whatsapp_share: + dependency: "direct main" + description: + name: whatsapp_share + sha256: d1884f302a52d9f400bc3d7d4274b77aad83424e08f425351cea8d13b4cb8649 + url: "https://pub.dev" + source: hosted + version: "2.0.2" win32: dependency: transitive description: diff --git a/app_petty_cash/pubspec.yaml b/app_petty_cash/pubspec.yaml index 16d731f..041ccbc 100644 --- a/app_petty_cash/pubspec.yaml +++ b/app_petty_cash/pubspec.yaml @@ -58,6 +58,8 @@ dependencies: photo_view: ^0.14.0 mime: ^1.0.4 path_provider: ^2.1.2 + flutter_share: ^2.0.0 + whatsapp_share: ^2.0.2 dev_dependencies: flutter_test: