bayu/dev #15

Merged
nugrohob825 merged 9 commits from bayu/dev into dev 2024-02-20 18:50:00 +07:00
4 changed files with 57 additions and 48 deletions
Showing only changes of commit ad6195061d - Show all commits

View File

@ -139,7 +139,7 @@ class TextFormView extends StatelessWidget {
style: TextStyle(
fontWeight: FontWeight.w500,
fontSize: 14,
color: fontColorDisabled ?? ColorPalette.slate500,
color: fontColorDisabled ?? ColorPalette.slate800,
),
readOnly: readOnly,
validator: validator,
@ -161,7 +161,7 @@ class TextFormView extends StatelessWidget {
hintStyle: hintTextStyle ??
const TextStyle(
fontSize: 14,
color: ColorPalette.greyFont,
color: ColorPalette.slate400,
fontWeight: FontWeight.normal,
),
isDense: true,

View File

@ -45,7 +45,7 @@ class RegistrationPasswordView extends StatelessWidget {
validator: (value) {
if (value!.isEmpty) {
return 'Password must filled';
} else if (value.length <= 8) {
} else if (value.length < 8) {
return 'Minimum password 8 Character';
} else {
return null;

View File

@ -29,7 +29,8 @@ class SubmitBankAccount extends StatelessWidget {
return SizedBox(
child: Consumer<SubmissionDataViewModel>(
builder: (context, provider, child) {
return Column(
return SingleChildScrollView(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
const TextCaption(title: 'Input your bank account data'),
@ -43,13 +44,15 @@ class SubmitBankAccount extends StatelessWidget {
TextFormView(
name: 'Account Number',
hintText: 'Input Account Number',
keyboardType: TextInputType.number,
trailingTitleWidget: SizedBox(
width: 24,
child: GestureDetector(
onTap: () {
routePush(context, page: const GuideScreen());
},
child: const ImageView(image: PathAssets.iconQuestion),
child:
const ImageView(image: PathAssets.iconQuestion),
),
),
),
@ -69,12 +72,14 @@ class SubmitBankAccount extends StatelessWidget {
onPressed: () {
provider.next(context).then((value) {
if (value) {
routePush(context, page: const ConfirmBankAccount());
routePush(context,
page: const ConfirmBankAccount());
}
});
},
)
],
),
);
}),
);

View File

@ -30,7 +30,7 @@ class SubmitDataIdCard extends StatelessWidget {
color: Colors.white,
borderRadius:
BorderRadius.vertical(top: Radius.circular(18))),
height: SizeConfig.height * .32,
height: SizeConfig.height * .35,
padding: const EdgeInsets.all(16.0),
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
@ -173,11 +173,15 @@ class SubmitDataIdCard extends StatelessWidget {
children: [
const TextCaption(
title: 'Check your ID card data for accuracy'),
TextFormView(name: 'NIK'),
TextFormView(
name: 'NIK',
keyboardType: TextInputType.number,
),
TextFormView(name: 'Full Name'),
DatePickerView(
name: 'Birth Date',
ctrl: provider.ctrlBirthDate,
maxDate: DateTime.now(),
isMultipleSelection: false,
enabled: true),
photoDocument(provider),