fix: styling step registration
This commit is contained in:
parent
f057a346c2
commit
ff515e2621
|
@ -14,12 +14,12 @@ class RiskProfileView extends StatelessWidget {
|
|||
Widget build(BuildContext context) {
|
||||
return Container(
|
||||
width: SizeConfig.width,
|
||||
height: SizeConfig.height,
|
||||
padding: EdgeInsets.all(24),
|
||||
height: SizeConfig.height * .8,
|
||||
padding: const EdgeInsets.all(24),
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Column(
|
||||
const Column(
|
||||
children: [
|
||||
ImageView(image: PathAssets.imgDataReport),
|
||||
SizedBox(
|
||||
|
@ -48,7 +48,7 @@ class RiskProfileView extends StatelessWidget {
|
|||
),
|
||||
Column(
|
||||
children: [
|
||||
Row(
|
||||
const Row(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
ImageView(
|
||||
|
@ -68,7 +68,7 @@ class RiskProfileView extends StatelessWidget {
|
|||
)
|
||||
],
|
||||
),
|
||||
SizedBox(
|
||||
const SizedBox(
|
||||
height: 24,
|
||||
),
|
||||
ButtonView(
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
import 'package:cims_apps/application/component/button/back_button_view.dart';
|
||||
import 'package:cims_apps/application/component/custom_app_bar/custom_app_bar.dart';
|
||||
import 'package:cims_apps/application/theme/color_palette.dart';
|
||||
import 'package:cims_apps/core/route/route.dart';
|
||||
|
@ -82,8 +83,8 @@ class _SubmissionParentState extends State<SubmissionParent> {
|
|||
appBar: CustomAppBar(
|
||||
height: SizeConfig.height * .1,
|
||||
title: 'Registration',
|
||||
leading: BackButton(
|
||||
onPressed: () {
|
||||
leading: BackButtonView(
|
||||
onPress: () {
|
||||
routePush(
|
||||
context,
|
||||
page: const BottomNavigationView(),
|
||||
|
@ -92,9 +93,7 @@ class _SubmissionParentState extends State<SubmissionParent> {
|
|||
},
|
||||
),
|
||||
),
|
||||
body: Stack(
|
||||
children: [
|
||||
Column(
|
||||
body: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
|
@ -103,8 +102,7 @@ class _SubmissionParentState extends State<SubmissionParent> {
|
|||
horizontal: 16.0, vertical: 16.0),
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children:
|
||||
List.generate(provider.stepAmount, (index) {
|
||||
children: List.generate(provider.stepAmount, (index) {
|
||||
return _stepItem(
|
||||
isCurrentStep:
|
||||
provider.getCurrentStep == index + 1 ||
|
||||
|
@ -114,16 +112,13 @@ class _SubmissionParentState extends State<SubmissionParent> {
|
|||
),
|
||||
),
|
||||
Expanded(
|
||||
child: Container(
|
||||
padding:
|
||||
const EdgeInsets.symmetric(horizontal: 16.0),
|
||||
child: SingleChildScrollView(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16.0),
|
||||
child: _content(provider.getCurrentStep),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}),
|
||||
);
|
||||
|
|
|
@ -24,15 +24,18 @@ class InitialSignature extends StatelessWidget {
|
|||
builder: (context, child) {
|
||||
return Consumer<SubmissionDataViewModel>(
|
||||
builder: (context, provider, child) {
|
||||
return Column(
|
||||
return SizedBox(
|
||||
height: SizeConfig.height * .8,
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
const TextCaption(title: 'Draw your digital sign'),
|
||||
const ImageView(image: PathAssets.frameSignature),
|
||||
const ListTileView(
|
||||
title:
|
||||
'Make sure the sign you draw is match with your ID Card'),
|
||||
SizedBox(height: SizeConfig.height * .07),
|
||||
SizedBox(height: SizeConfig.height * .1),
|
||||
ButtonView(
|
||||
name: 'Next',
|
||||
onPressed: () {
|
||||
|
@ -44,6 +47,7 @@ class InitialSignature extends StatelessWidget {
|
|||
},
|
||||
)
|
||||
],
|
||||
),
|
||||
);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user