Layout fix

This commit is contained in:
2023-12-26 16:49:01 +03:00
parent a8ed8b75b1
commit 14cd567428
14 changed files with 80 additions and 35 deletions

View File

@@ -56,10 +56,10 @@ class _AllergiesScreenState extends State<AllergiesScreen> {
appTheme.blueA400)))),
SizedBox(height: 22.v),
Text("allergies_presence".tr,
style: CustomTextStyles.headlineSmallMulish),
style: theme.textTheme.headlineSmall),
Spacer(flex: 36),
_buildTextFormField(context),
Spacer(flex: 63),
Spacer(flex: 54),
BlocBuilder<AllergiesBloc, AllergiesState>(
builder: (context, state) {
return NextStepButton(
@@ -79,8 +79,21 @@ class _AllergiesScreenState extends State<AllergiesScreen> {
);
});
}),
SizedBox(height: 17.v),
Text("skip".tr, style: theme.textTheme.bodyLarge)
BlocBuilder<AllergiesBloc, AllergiesState>(
builder: (context, state) {
return GestureDetector(
onTap: () {
UserRegistrationSheet sheet =
state.allergiesModelObj!.userRegistrationSheet;
Navigator.pushNamed(
context,
AppRoutes.medicineIntakeScreen,
arguments: sheet,
);
},
child: Text("skip".tr, style: theme.textTheme.bodyLarge),
);
}),
]))));
}