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

View File

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

View File

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