This commit is contained in:
kicap
2024-02-03 20:00:11 +08:00
parent d96a14e062
commit b21d7889c3
4 changed files with 63 additions and 51 deletions

12
.env
View File

@ -2,12 +2,12 @@
# api_url = 'https://panti-asuhan.s-keytech.com/api/' # api_url = 'https://panti-asuhan.s-keytech.com/api/'
# # url = 'http://172.29.85.181/panti_asuhan2/' # # url = 'http://172.29.85.181/panti_asuhan2/'
# # api_url = 'http://172.29.85.181/panti_asuhan2/api/' # # api_url = 'http://172.29.85.181/panti_asuhan2/api/'
# url = 'http://20.20.20.25:3001/' url = 'http://20.20.20.25:3001/'
# table_url = 'http://20.20.20.25:3001/table' table_url = 'http://20.20.20.25:3001/table'
# api_url = 'http://20.20.20.25:3001/table' api_url = 'http://20.20.20.25:3001/table'
# url = 'http://192.168.20.232:3001/' # url = 'http://192.168.20.232:3001/'
# table_url = 'http://192.168.20.232:3001/table' # table_url = 'http://192.168.20.232:3001/table'
# api_url = 'http://192.168.20.232:3001/table' # api_url = 'http://192.168.20.232:3001/table'
url = 'https://reza_backend.kicap-karan.com/' # url = 'https://reza_backend.kicap-karan.com/'
table_url = 'https://reza_backend.kicap-karan.com/table' # table_url = 'https://reza_backend.kicap-karan.com/table'
api_url = 'https://reza_backend.kicap-karan.com/table' # api_url = 'https://reza_backend.kicap-karan.com/table'

View File

@ -467,6 +467,8 @@
buildSettings = { buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_MODULES = YES;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
DEVELOPMENT_TEAM = F4SG2JTPHZ; DEVELOPMENT_TEAM = F4SG2JTPHZ;
ENABLE_BITCODE = NO; ENABLE_BITCODE = NO;
@ -477,6 +479,7 @@
); );
PRODUCT_BUNDLE_IDENTIFIER = com.example.rezaApp; PRODUCT_BUNDLE_IDENTIFIER = com.example.rezaApp;
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_VERSION = 5.0; SWIFT_VERSION = 5.0;
VERSIONING_SYSTEM = "apple-generic"; VERSIONING_SYSTEM = "apple-generic";
@ -646,8 +649,10 @@
buildSettings = { buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_MODULES = YES;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
DEVELOPMENT_TEAM = F4SG2JTPHZ; DEVELOPMENT_TEAM = "";
ENABLE_BITCODE = NO; ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist; INFOPLIST_FILE = Runner/Info.plist;
LD_RUNPATH_SEARCH_PATHS = ( LD_RUNPATH_SEARCH_PATHS = (
@ -656,6 +661,7 @@
); );
PRODUCT_BUNDLE_IDENTIFIER = com.example.rezaApp; PRODUCT_BUNDLE_IDENTIFIER = com.example.rezaApp;
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0; SWIFT_VERSION = 5.0;
@ -669,6 +675,8 @@
buildSettings = { buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_MODULES = YES;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
DEVELOPMENT_TEAM = F4SG2JTPHZ; DEVELOPMENT_TEAM = F4SG2JTPHZ;
ENABLE_BITCODE = NO; ENABLE_BITCODE = NO;
@ -679,6 +687,7 @@
); );
PRODUCT_BUNDLE_IDENTIFIER = com.example.rezaApp; PRODUCT_BUNDLE_IDENTIFIER = com.example.rezaApp;
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_VERSION = 5.0; SWIFT_VERSION = 5.0;
VERSIONING_SYSTEM = "apple-generic"; VERSIONING_SYSTEM = "apple-generic";

View File

@ -53,9 +53,9 @@ class LoginUserView extends StatelessWidget {
), ),
const SizedBox(height: 16), const SizedBox(height: 16),
MyTextFormField( MyTextFormField(
maxLength: 13, // maxLength: 13,
hintText: 'No. HP', hintText: 'Username',
keyboardType: TextInputType.phone, // keyboardType: TextInputType.phone,
controller: model.noHpController, controller: model.noHpController,
), ),
const SizedBox(height: 16), const SizedBox(height: 16),

View File

@ -174,54 +174,57 @@ class DetailMakananView extends HookWidget {
), ),
], ],
), ),
child: Row( child: SingleChildScrollView(
children: [ scrollDirection: Axis.horizontal,
Expanded( child: Row(
child: Column( children: [
mainAxisAlignment: MainAxisAlignment.start, Expanded(
crossAxisAlignment: CrossAxisAlignment.start, child: Column(
children: [ mainAxisAlignment: MainAxisAlignment.start,
Text( crossAxisAlignment: CrossAxisAlignment.start,
"Total Harga", children: [
style: regularTextStyle.copyWith( Text(
fontSize: 14, "Total Harga",
color: fontGrey, style: regularTextStyle.copyWith(
fontSize: 14,
color: fontGrey,
),
), ),
), const SizedBox(
const SizedBox( height: 5,
height: 5,
),
Text(
model.isBusy
? 'Loading...'
: 'Rp. ${int.parse(makananModel.hargaMakanan!) + 10000}',
style: boldTextStyle.copyWith(
fontSize: 16,
color: dangerColor,
), ),
), Text(
], model.isBusy
), ? 'Loading...'
), : 'Rp. ${int.parse(makananModel.hargaMakanan!) + 10000}',
Expanded( style: boldTextStyle.copyWith(
child: Container( fontSize: 16,
height: 40, color: dangerColor,
decoration: BoxDecoration( ),
color: dangerColor, ),
borderRadius: BorderRadius.circular(10), ],
), ),
child: Center( ),
child: Text( Expanded(
"Pesan Sekarang", child: Container(
style: boldTextStyle.copyWith( height: 40,
fontSize: 16, decoration: BoxDecoration(
color: Colors.white, color: dangerColor,
borderRadius: BorderRadius.circular(10),
),
child: Center(
child: Text(
"Pesan Sekarang",
style: boldTextStyle.copyWith(
fontSize: 16,
color: Colors.white,
),
), ),
), ),
), ),
), ),
), ],
], ),
), ),
), ),
), ),