step 29 : add base 64 param in repository insert tx

This commit is contained in:
sindhu
2024-01-19 12:13:19 +07:00
parent c2f43f9061
commit 2cab59c86c
6 changed files with 31 additions and 22 deletions

View File

@@ -1,13 +1,14 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"> <manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<application <application
android:label="PettyCash" android:label="PettyCash"
android:name="${applicationName}" android:name="${applicationName}"
android:icon="@mipmap/launcher_icon" android:icon="@mipmap/launcher_icon"
android:usesCleartextTraffic="true" android:usesCleartextTraffic="true"
android:requestLegacyExternalStorage="true" android:requestLegacyExternalStorage="true"
> >
<activity <activity
android:name=".MainActivity" android:name=".MainActivity"
android:exported="true" android:exported="true"

View File

@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<resources> <resources>
<external-path name="external_storage_directory" path="." /> <external-path name="external_storage_directory" path="." />
<external-path name="external_files" path="."/>
</resources> </resources>

View File

@@ -100,6 +100,7 @@ class TransaksiRepository extends BaseRepository {
'userid': userid, 'userid': userid,
'sender': sender, 'sender': sender,
'companyid': M_CompanyID, 'companyid': M_CompanyID,
'base64File': base64file,
'fileName': fileName, 'fileName': fileName,
'fileSize': fileSize, 'fileSize': fileSize,
'fileEkstension': fileExtension 'fileEkstension': fileExtension

View File

@@ -473,28 +473,14 @@ class HomeScreen extends HookConsumerWidget {
fontSize: 14, 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( Expanded(
child: Container( child: Container(
child: Text( child: Text(
' by : '+listTransaksiHome ' by : ' +
.value[idx].usertransaksi listTransaksiHome
.toString(), .value[idx]
.usertransaksi
.toString(),
overflow: overflow:
TextOverflow.ellipsis, TextOverflow.ellipsis,
style: Constant.body1( style: Constant.body1(
@@ -502,8 +488,10 @@ class HomeScreen extends HookConsumerWidget {
.copyWith( .copyWith(
fontWeight: fontWeight:
FontWeight.normal, FontWeight.normal,
fontStyle: FontStyle.italic, fontStyle:
color: Constant.pcBtnBackgroundColor, FontStyle.italic,
color: Constant
.pcBtnBackgroundColor,
fontSize: 14, fontSize: 14,
), ),
), ),

View File

@@ -278,6 +278,14 @@ packages:
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.0.4" 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: flutter_svg:
dependency: "direct main" dependency: "direct main"
description: description:
@@ -893,6 +901,14 @@ packages:
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "2.0.17" 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: win32:
dependency: transitive dependency: transitive
description: description:

View File

@@ -58,6 +58,8 @@ dependencies:
photo_view: ^0.14.0 photo_view: ^0.14.0
mime: ^1.0.4 mime: ^1.0.4
path_provider: ^2.1.2 path_provider: ^2.1.2
flutter_share: ^2.0.0
whatsapp_share: ^2.0.2
dev_dependencies: dev_dependencies:
flutter_test: flutter_test: