This commit is contained in:
Patrick Alvin Alcala 2025-02-17 14:49:06 +08:00
parent 3aa12bfcad
commit 71a289b74c
11 changed files with 108 additions and 52 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  ʵÍ<EFBFBD>Ñ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  ʵÍ<EFBFBD>Ñ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  ʵÍ<EFBFBD>Ñ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  ʵÍ<EFBFBD>Ñ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  ʵÍ<EFBFBD>Ñ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  ˵Í<EFBFBD>Ñ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  ˵Í<EFBFBD>Ñ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  ˵Í<EFBFBD>Ñ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  ˵Í<EFBFBD>Ñ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  ˵Í<EFBFBD>Ñ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  ˵Í<EFBFBD>Ñ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  ˵Í<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

<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  ѵÍ<EFBFBD>Ñ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  ѵÍ<EFBFBD>Ñ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  ѵÍ<EFBFBD>Ñ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  ѵÍ<EFBFBD>Ñ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  ѵÍ<EFBFBD>Ñ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  ѵÍ<EFBFBD>Ñ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  ѵÍ<EFBFBD>Ñ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  ѵÍ<EFBFBD>Ñ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  ѵÍ<EFBFBD>Ñ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  ѵÍ<EFBFBD>Ñ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  ѵÍ<EFBFBD>Ñ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  ѵÍ<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}
{
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  ×µÍ<EFBFBD>Ñ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  ×µÍ<EFBFBD>Ñ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  ×µÍ<EFBFBD>Ñ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  ×µÍ<EFBFBD>Ñ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  ×µÍ<EFBFBD>Ñ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  éµÍ<EFBFBD>Ñ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  éµÍ<EFBFBD>Ñ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  éµÍ<EFBFBD>Ñ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  éµÍ<EFBFBD>Ñ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  éµÍ<EFBFBD>Ñ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  éµÍ<EFBFBD>Ñ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  éµÍ<EFBFBD>Ñ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  éµÍ<EFBFBD>Ñ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  êµÍ<EFBFBD>Ñ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  êµÍ<EFBFBD>Ñ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  êµÍ<EFBFBD>Ñ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  êµÍ<EFBFBD>Ñ2 ¤ ˆÈ¼<C388>Ñ2
^/home/patrick/fvm/versions/3.29.0/packages/flutter_tools/gradle/src/main/groovy/CMakeLists.txt  ï€×<EFBFBD>Ñ2 ¤ ˆÈ¼<C388>Ñ2

BIN
assets/ofa_logo.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

View file

@ -5,6 +5,7 @@ import 'package:pharmacy_mobile/pages/add_generics.dart';
import 'package:pharmacy_mobile/pages/add_medicine.dart';
import 'package:pharmacy_mobile/pages/add_stock.dart';
import 'package:pharmacy_mobile/pages/add_type.dart';
import 'package:pharmacy_mobile/pages/customer_page.dart';
import 'package:pharmacy_mobile/pages/delete_stock.dart';
import 'package:pharmacy_mobile/pages/list_stocks.dart';
import 'package:pharmacy_mobile/pages/login_page.dart';
@ -86,6 +87,11 @@ final _router = GoRouter(
path: '/deletestock',
builder: (context, state) => const DeleteStockPage(),
),
GoRoute(
name: 'customer',
path: '/customer',
builder: (context, state) => const CustomerPage(),
),
],
);

View file

@ -0,0 +1,32 @@
import 'package:flutter/material.dart';
import 'package:gap/gap.dart';
import 'package:pharmacy_mobile/widgets/page_background_widget.dart';
import 'package:pharmacy_mobile/widgets/text_widget.dart';
import 'package:pharmacy_mobile/widgets/title_widget.dart';
class CustomerPage extends StatelessWidget {
const CustomerPage({super.key});
@override
Widget build(BuildContext context) {
return PopScope(
canPop: false,
child: Scaffold(
body: SingleChildScrollView(
child: PageBackgroundWidget(
height: MediaQuery.of(context).size.height + 400,
child: Center(
child: Column(
children: [
const Gap(96),
const TitleWidget(firstTextSize: 20, secondTextSize: 32),
const Gap(32),
const TextWidget(text: 'Menu'),
const Gap(16),
],
))),
),
),
);
}
}

View file

@ -26,6 +26,9 @@ class IndexPage extends StatelessWidget {
child: Column(
children: [
const Gap(88),
Image.asset('assets/ofa_logo.webp',
width: 90, cacheWidth: (90 * MediaQuery.of(context).devicePixelRatio).round()),
const Gap(8),
const TitleWidget(firstTextSize: 24, secondTextSize: 32),
const Gap(32),
Padding(

View file

@ -1,3 +1,5 @@
import 'dart:developer';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:go_router/go_router.dart';
@ -60,8 +62,10 @@ class _LoginPageState extends State<LoginPage> {
showNotification(context, 'Login Successful', true);
WidgetsBinding.instance.addPostFrameCallback((_) {
if (mounted) {
context.push('/main');
if (user.contains('admin')) {
if (mounted) context.push('/main');
} else {
if (mounted) context.push('/customer');
}
});
}

View file

@ -31,8 +31,6 @@ class _RegisterPageState extends State<RegisterPage> {
final password = _passwordController.text;
final confirmPassword = _confirmPasswordController.text;
setState(() => _isLoading = true);
if (email.isEmpty) {
if (mounted) {
showNotification(context, 'Error: Please enter a valid email', false);
@ -59,9 +57,21 @@ class _RegisterPageState extends State<RegisterPage> {
return;
}
setState(() => _isLoading = true);
try {
if (await InternetConnectionChecker.instance.hasConnection) {
await _authService.signUp(email, password);
if (mounted) {
showNotification(context, 'Registration Successful', true);
WidgetsBinding.instance.addPostFrameCallback((_) {
if (mounted) {
context.push('/login');
}
});
}
} else {
if (mounted) {
showNotification(context, 'Error: No Internet Connection', false);

View file

@ -38,3 +38,4 @@ flutter:
- assets/login_background.webp
- assets/register_background.webp
- assets/menu_background.webp
- assets/ofa_logo.webp