This commit is contained in:
Patrick Alvin Alcala 2025-02-25 17:48:49 +08:00
parent 947c19c401
commit cbf2ff062f
9 changed files with 110 additions and 61 deletions

View file

@ -2,27 +2,27 @@ C/C++ Structured Log
<EFBFBD>
/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/arm64-v8a/additional_project_files.txtC
A
?com.android.build.gradle.internal.cxx.io.EncodedFileFingerPrint  òäªãÓ2  ¢í‡<C3AD>Ñ2€
?com.android.build.gradle.internal.cxx.io.EncodedFileFingerPrint  ˜<EFBFBD>¾ãÓ2  ¢í‡<C3AD>Ñ2€
~
|/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/arm64-v8a/android_gradle_build.json  òäªãÓ2ß £í‡<C3AD>Ñ2‡
|/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/arm64-v8a/android_gradle_build.json  ˜<EFBFBD>¾ãÓ2ß £í‡<C3AD>Ñ2‡

<EFBFBD>/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/arm64-v8a/android_gradle_build_mini.json  òäªãÓ2ø £í‡<C3AD>Ñ2r
<EFBFBD>/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/arm64-v8a/android_gradle_build_mini.json  ˜<EFBFBD>¾ãÓ2ø £í‡<C3AD>Ñ2r
p
n/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/arm64-v8a/build.ninja  òäªãÓ2ߺ —í‡<C3AD>Ñ2v
n/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/arm64-v8a/build.ninja  <EFBFBD>¾ãÓ2ߺ —í‡<C3AD>Ñ2v
t
r/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/arm64-v8a/build.ninja.txt  òäªãÓ2{
r/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/arm64-v8a/build.ninja.txt  <EFBFBD>¾ãÓ2{
y
w/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/arm64-v8a/build_file_index.txt  òäªãÓ2 ^ ¥í‡<C3AD>Ñ2|
w/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/arm64-v8a/build_file_index.txt  <EFBFBD>¾ãÓ2 ^ ¥í‡<C3AD>Ñ2|
z
x/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/arm64-v8a/compile_commands.json  òäªãÓ2
x/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/arm64-v8a/compile_commands.json  <EFBFBD>¾ãÓ2
~
|/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/arm64-v8a/compile_commands.json.bin  óäªãÓ2 ˆ
|/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/arm64-v8a/compile_commands.json.bin  <EFBFBD>¾ãÓ2 ˆ

/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/arm64-v8a/metadata_generation_command.txt  óäªãÓ2
/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/arm64-v8a/metadata_generation_command.txt  <EFBFBD>¾ãÓ2
ç ¥í‡<C3AD>Ñ2y
w
u/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/arm64-v8a/prefab_config.json  óäªãÓ2  ( ¥í‡<C3AD>Ñ2~
u/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/arm64-v8a/prefab_config.json  <EFBFBD>¾ãÓ2  ( ¥í‡<C3AD>Ñ2~
|
z/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/arm64-v8a/symbol_folder_index.txt  óäªãÓ2  q ¥í‡<C3AD>Ñ2b
z/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/arm64-v8a/symbol_folder_index.txt  <EFBFBD>¾ãÓ2  q ¥í‡<C3AD>Ñ2b
`
^/home/patrick/fvm/versions/3.29.0/packages/flutter_tools/gradle/src/main/groovy/CMakeLists.txt  óäªãÓ2 ¤ ˆÈ¼<C388>Ñ2
^/home/patrick/fvm/versions/3.29.0/packages/flutter_tools/gradle/src/main/groovy/CMakeLists.txt  <EFBFBD>¾ãÓ2 ¤ ˆÈ¼<C388>Ñ2

View file

@ -2,27 +2,27 @@ C/C++ Structured Log

<EFBFBD>/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/armeabi-v7a/additional_project_files.txtC
A
?com.android.build.gradle.internal.cxx.io.EncodedFileFingerPrint  ‚åªãÓ2  ·ó‡<C3B3>Ñ2ƒ
?com.android.build.gradle.internal.cxx.io.EncodedFileFingerPrint  Ÿ<EFBFBD>¾ãÓ2  ·ó‡<C3B3>Ñ2ƒ

~/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/armeabi-v7a/android_gradle_build.json  „åªãÓ2ã ¸ó‡<C3B3>Ñ2‰
~/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/armeabi-v7a/android_gradle_build.json  Ÿ<EFBFBD>¾ãÓ2ã ¸ó‡<C3B3>Ñ2‰

ƒ/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/armeabi-v7a/android_gradle_build_mini.json  „åªãÓ2ü ¸ó‡<C3B3>Ñ2t
ƒ/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/armeabi-v7a/android_gradle_build_mini.json  Ÿ<EFBFBD>¾ãÓ2ü ¸ó‡<C3B3>Ñ2t
r
p/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/armeabi-v7a/build.ninja  „åªãÓ2éº …ó‡<C3B3>Ñ2x
p/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/armeabi-v7a/build.ninja  Ÿ<EFBFBD>¾ãÓ2éº …ó‡<C3B3>Ñ2x
v
t/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/armeabi-v7a/build.ninja.txt  „åªãÓ2}
t/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/armeabi-v7a/build.ninja.txt  Ÿ<EFBFBD>¾ãÓ2}
{
y/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/armeabi-v7a/build_file_index.txt  „åªãÓ2 ^ ºó‡<C3B3>Ñ2~
y/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/armeabi-v7a/build_file_index.txt  Ÿ<EFBFBD>¾ãÓ2 ^ ºó‡<C3B3>Ñ2~
|
z/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/armeabi-v7a/compile_commands.json  „åªãÓ2ƒ
z/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/armeabi-v7a/compile_commands.json  Ÿ<EFBFBD>¾ãÓ2ƒ

~/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/armeabi-v7a/compile_commands.json.bin  „åªãÓ2 Š
~/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/armeabi-v7a/compile_commands.json.bin  Ÿ<EFBFBD>¾ãÓ2 Š

/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/armeabi-v7a/metadata_generation_command.txt  „åªãÓ2
/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/armeabi-v7a/metadata_generation_command.txt   <EFBFBD>¾ãÓ2
ñ ºó‡<C3B3>Ñ2{
y
w/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/armeabi-v7a/prefab_config.json  …åªãÓ2  ( ºó‡<C3B3>Ñ2€
w/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/armeabi-v7a/prefab_config.json   <EFBFBD>¾ãÓ2  ( ºó‡<C3B3>Ñ2€
~
|/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/armeabi-v7a/symbol_folder_index.txt  …åªãÓ2  s ºó‡<C3B3>Ñ2b
|/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/armeabi-v7a/symbol_folder_index.txt   <EFBFBD>¾ãÓ2  s ºó‡<C3B3>Ñ2b
`
^/home/patrick/fvm/versions/3.29.0/packages/flutter_tools/gradle/src/main/groovy/CMakeLists.txt  …åªãÓ2 ¤ ˆÈ¼<C388>Ñ2
^/home/patrick/fvm/versions/3.29.0/packages/flutter_tools/gradle/src/main/groovy/CMakeLists.txt   <EFBFBD>¾ãÓ2 ¤ ˆÈ¼<C388>Ñ2

View file

@ -2,27 +2,27 @@ C/C++ Structured Log}
{
y/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/x86/additional_project_files.txtC
A
?com.android.build.gradle.internal.cxx.io.EncodedFileFingerPrint  <EFBFBD>åªãÓ2  ø‡<C3B8>Ñ2z
?com.android.build.gradle.internal.cxx.io.EncodedFileFingerPrint  ¨<EFBFBD>¾ãÓ2  ø‡<C3B8>Ñ2z
x
v/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/x86/android_gradle_build.json  <EFBFBD>åªãÓ2Ó Œø‡<C3B8>Ñ2
v/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/x86/android_gradle_build.json  ¨<EFBFBD>¾ãÓ2Ó Œø‡<C3B8>Ñ2
}
{/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/x86/android_gradle_build_mini.json  <EFBFBD>åªãÓ2ì <20>ø‡<C3B8>Ñ2l
{/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/x86/android_gradle_build_mini.json  ¨<EFBFBD>¾ãÓ2ì <20>ø‡<C3B8>Ñ2l
j
h/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/x86/build.ninja  <EFBFBD>åªãÓ2Áº æ÷‡<C3B7>Ñ2p
h/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/x86/build.ninja  ¨<EFBFBD>¾ãÓ2Áº æ÷‡<C3B7>Ñ2p
n
l/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/x86/build.ninja.txt  ŽåªãÓ2u
l/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/x86/build.ninja.txt  ©<EFBFBD>¾ãÓ2u
s
q/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/x86/build_file_index.txt  ŽåªãÓ2 ^ Žø‡<C3B8>Ñ2v
q/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/x86/build_file_index.txt  ©<EFBFBD>¾ãÓ2 ^ Žø‡<C3B8>Ñ2v
t
r/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/x86/compile_commands.json  ŽåªãÓ2z
r/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/x86/compile_commands.json  ©<EFBFBD>¾ãÓ2z
x
v/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/x86/compile_commands.json.bin  ŽåªãÓ2
v/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/x86/compile_commands.json.bin  ©<EFBFBD>¾ãÓ2
~
|/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/x86/metadata_generation_command.txt  ŽåªãÓ2
|/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/x86/metadata_generation_command.txt  ©<EFBFBD>¾ãÓ2
É Žø‡<C3B8>Ñ2s
q
o/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/x86/prefab_config.json  <EFBFBD>åªãÓ2  ( Žø‡<C3B8>Ñ2x
o/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/x86/prefab_config.json  ©<EFBFBD>¾ãÓ2  ( Žø‡<C3B8>Ñ2x
v
t/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/x86/symbol_folder_index.txt  <EFBFBD>åªãÓ2  k Žø‡<C3B8>Ñ2b
t/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/x86/symbol_folder_index.txt  ©<EFBFBD>¾ãÓ2  k Žø‡<C3B8>Ñ2b
`
^/home/patrick/fvm/versions/3.29.0/packages/flutter_tools/gradle/src/main/groovy/CMakeLists.txt  <EFBFBD>åªãÓ2 ¤ ˆÈ¼<C388>Ñ2
^/home/patrick/fvm/versions/3.29.0/packages/flutter_tools/gradle/src/main/groovy/CMakeLists.txt  ©<EFBFBD>¾ãÓ2 ¤ ˆÈ¼<C388>Ñ2

View file

@ -2,27 +2,27 @@ C/C++ Structured Log
~
|/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/x86_64/additional_project_files.txtC
A
?com.android.build.gradle.internal.cxx.io.EncodedFileFingerPrint  –åªãÓ2  ¡ý‡<C3BD>Ñ2}
?com.android.build.gradle.internal.cxx.io.EncodedFileFingerPrint  ±<EFBFBD>¾ãÓ2  ¡ý‡<C3BD>Ñ2}
{
y/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/x86_64/android_gradle_build.json  –åªãÓ2Ù ¡ý‡<C3BD>Ñ2ƒ
y/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/x86_64/android_gradle_build.json  ²<EFBFBD>¾ãÓ2Ù ¡ý‡<C3BD>Ñ2ƒ

~/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/x86_64/android_gradle_build_mini.json  –åªãÓ2ò ¢ý‡<C3BD>Ñ2o
~/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/x86_64/android_gradle_build_mini.json  ²<EFBFBD>¾ãÓ2ò ¢ý‡<C3BD>Ñ2o
m
k/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/x86_64/build.ninja  –åªãÓ2к ý‡<C3BD>Ñ2s
k/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/x86_64/build.ninja  ²<EFBFBD>¾ãÓ2к ý‡<C3BD>Ñ2s
q
o/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/x86_64/build.ninja.txt  –åªãÓ2x
o/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/x86_64/build.ninja.txt  ²<EFBFBD>¾ãÓ2x
v
t/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/x86_64/build_file_index.txt  –åªãÓ2 ^ ¢ý‡<C3BD>Ñ2y
t/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/x86_64/build_file_index.txt  ²<EFBFBD>¾ãÓ2 ^ ¢ý‡<C3BD>Ñ2y
w
u/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/x86_64/compile_commands.json  –åªãÓ2}
u/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/x86_64/compile_commands.json  ²<EFBFBD>¾ãÓ2}
{
y/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/x86_64/compile_commands.json.bin  –åªãÓ2
y/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/x86_64/compile_commands.json.bin  ²<EFBFBD>¾ãÓ2
<EFBFBD>
/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/x86_64/metadata_generation_command.txt  –åªãÓ2
/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/x86_64/metadata_generation_command.txt  ²<EFBFBD>¾ãÓ2
Ø ¢ý‡<C3BD>Ñ2v
t
r/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/x86_64/prefab_config.json  –åªãÓ2  ( ¢ý‡<C3BD>Ñ2{
r/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/x86_64/prefab_config.json  ²<EFBFBD>¾ãÓ2  ( ¢ý‡<C3BD>Ñ2{
y
w/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/x86_64/symbol_folder_index.txt  –åªãÓ2  n ¢ý‡<C3BD>Ñ2b
w/home/patrick/Documents/WebApps/pharmacy_mobile/android/app/.cxx/RelWithDebInfo/14495r4k/x86_64/symbol_folder_index.txt  ²<EFBFBD>¾ãÓ2  n ¢ý‡<C3BD>Ñ2b
`
^/home/patrick/fvm/versions/3.29.0/packages/flutter_tools/gradle/src/main/groovy/CMakeLists.txt  –åªãÓ2 ¤ ˆÈ¼<C388>Ñ2
^/home/patrick/fvm/versions/3.29.0/packages/flutter_tools/gradle/src/main/groovy/CMakeLists.txt  ²<EFBFBD>¾ãÓ2 ¤ ˆÈ¼<C388>Ñ2

View file

@ -1,6 +1,6 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<application
android:label="pharmacy_mobile"
android:label="OFA Mobile"
android:name="${applicationName}"
android:enableOnBackInvokedCallback="true"
android:icon="@mipmap/launcher_icon">

View file

@ -13,7 +13,7 @@
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>pharmacy_mobile</string>
<string>OFA Mobile</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>

View file

@ -17,6 +17,7 @@ import 'package:pharmacy_mobile/widgets/dropdown_wrappermulti_widget.dart';
import 'package:pharmacy_mobile/widgets/form_border_widget2.dart';
import 'package:pharmacy_mobile/widgets/input_widget.dart';
import 'package:pharmacy_mobile/widgets/page_background_widget.dart';
import 'package:pharmacy_mobile/widgets/scanbarcode_widget.dart';
import 'package:pharmacy_mobile/widgets/snackbar_widget.dart';
import 'package:pharmacy_mobile/widgets/text_widget.dart';
import 'package:pharmacy_mobile/widgets/title_widget.dart';
@ -231,7 +232,7 @@ class _AddMedicinePageState extends State<AddMedicinePage> {
Widget build(BuildContext context) {
return Scaffold(
body: PageBackgroundWidget(
height: MediaQuery.of(context).size.height + 400,
height: MediaQuery.of(context).size.height + 600,
child: Center(
child: Column(children: [
const Gap(96),
@ -272,9 +273,8 @@ class _AddMedicinePageState extends State<AddMedicinePage> {
onChanged: _updateManufactorer),
const Gap(16),
InputWidget(label: 'Barcode', controller: _barcodeController),
const Gap(8),
ButtonWidget(text: 'Scan Barcode', onPressed: _scanBarcode),
const Gap(32),
ScanbarcodeWidget(onTap: _scanBarcode),
const Gap(16),
if (imageUrl.isNotEmpty)
Center(
child: ClipRRect(

View file

@ -93,18 +93,18 @@ class _AddStockPageState extends State<AddStockPage> with WidgetsBindingObserver
}
Future<void> _scanBarcode() async {
final medicine = await barcodeScan(context);
final scannedBarcode = await barcodeScan(context);
setState(() {
_selectedMedicine = medicine;
_selectedMedicine = scannedBarcode;
});
}
Future<String> _getMedicineUsingBarcode(String name) async {
final encryptedBarcode = await _refMedicines.getBarcode(name);
final barcode = decrypt(encryptedBarcode);
return barcode;
}
// Future<String> _getMedicineUsingBarcode(String barcode) async {
// final encryptedBarcode = await _refMedicines.getBarcode(barcode);
// final barcode = decrypt(encryptedBarcode);
// return barcode;
// }
@override
void initState() {

View file

@ -0,0 +1,49 @@
import 'package:flutter/material.dart';
import 'package:gap/gap.dart';
import 'package:pharmacy_mobile/widgets/text_widget.dart';
class ScanbarcodeWidget extends StatelessWidget {
final GestureTapCallback onTap;
const ScanbarcodeWidget({super.key, required this.onTap});
@override
Widget build(BuildContext context) {
return Row(
mainAxisAlignment: MainAxisAlignment.end,
children: [
GestureDetector(
onTap: onTap,
child: Container(
padding: const EdgeInsets.only(top: 8),
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(20),
// color: const Color.fromARGB(0, 36, 18, 58),
// boxShadow: [
// BoxShadow(
// color: Colors.black26,
// blurRadius: 5.0,
// offset: Offset(0, 2),
// ),
// ],
),
child: Row(
children: [
Icon(
Icons.qr_code_scanner,
color: Colors.white,
size: 22,
),
const Gap(8),
TextWidget(
text: 'Scan Barcode',
size: 14,
color: Colors.white,
),
],
),
),
),
],
);
}
}