forked from eatvio/eatvio_app
chore: update version to 1.3.11+91 in pubspec.yaml; clean up whitespace in various files
This commit is contained in:
@@ -137,7 +137,8 @@ class _SecondStepContentState extends State<SecondStepContent> {
|
||||
setState(() {
|
||||
isLoading = false;
|
||||
});
|
||||
if (context.mounted && !hasValidationError) {
|
||||
if (context.mounted) {
|
||||
// Показываем bottom sheet всегда: при успехе или ошибке
|
||||
showRegistrationBottomSheet(context, cubit, commonResult);
|
||||
}
|
||||
},
|
||||
@@ -157,7 +158,7 @@ class _SecondStepContentState extends State<SecondStepContent> {
|
||||
child: RichText(
|
||||
textAlign: TextAlign.center,
|
||||
text: TextSpan(
|
||||
text: 'Нажимая “Зарегистрироваться”, Вы соглашаетесь \n',
|
||||
text: 'Нажимая "Зарегистрироваться", Вы соглашаетесь \n',
|
||||
style: const TextStyle(fontSize: 12, color: Colors.black),
|
||||
children: [
|
||||
const TextSpan(text: 'c '),
|
||||
|
||||
@@ -76,7 +76,7 @@ class _RegistrationBottomSheetState extends State<RegistrationBottomSheet> {
|
||||
buttonTextStyle: TextStyles.textMSemibold.copyWith(color: appTheme.whiteA700),
|
||||
buttonStyle: ButtonStyle(side: const WidgetStatePropertyAll(BorderSide.none), backgroundColor: WidgetStatePropertyAll(appTheme.blueA400)),
|
||||
onPressed: () async {
|
||||
AppRouter.navigatorKey.currentContext?.go(RouteConstants.verifyEmailScreen);
|
||||
AppRouter.navigatorKey.currentContext?.go(RouteConstants.feedScreen);
|
||||
},
|
||||
),
|
||||
const SizedBox(width: 20),
|
||||
@@ -96,7 +96,12 @@ class _RegistrationBottomSheetState extends State<RegistrationBottomSheet> {
|
||||
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(bottom: 16.0),
|
||||
child: Text(s.error_desc, style: TextStyles.textMMediumAuto.copyWith(color: appTheme.darkGrey)),
|
||||
child: Text(
|
||||
widget.cubit.state.registrationError?.isNotEmpty == true
|
||||
? widget.cubit.state.registrationError!
|
||||
: s.error_desc,
|
||||
style: TextStyles.textMMediumAuto.copyWith(color: appTheme.darkGrey),
|
||||
),
|
||||
),
|
||||
const SizedBox(width: 20),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user