chore(version): update app version to 1.3.5+85 and improve test coverage reporting in CI

This commit is contained in:
mso7nueh
2025-12-08 11:19:08 +03:00
parent abe4985f0e
commit c2a506cdbf
148 changed files with 12395 additions and 1889 deletions

View File

@@ -20,7 +20,7 @@ class StateUtils {
if (isError(state)) {
// Попытка извлечь сообщение об ошибке из состояния
final stateString = state.toString();
final errorMatch = RegExp(r'error[:\s]+([^,}]+)').firstMatch(stateString);
final errorMatch = RegExp(r'error[:\s]+([^,}]+)', caseSensitive: false).firstMatch(stateString);
return errorMatch?.group(1)?.trim();
}
return null;

View File

@@ -35,7 +35,7 @@ class CustomOutlinedButton extends BaseButton {
margin: margin,
decoration: decoration,
child: OutlinedButton(
style: buttonStyle!,
style: buttonStyle ?? OutlinedButton.styleFrom(),
onPressed: isDisabled ?? false ? null : onPressed ?? () {},
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
@@ -59,7 +59,7 @@ class CustomOutlinedButton extends BaseButton {
margin: margin,
decoration: decoration,
child: OutlinedButton(
style: buttonStyle!,
style: buttonStyle ?? OutlinedButton.styleFrom(),
onPressed: isDisabled ?? false ? null : onPressed ?? () {},
child: Row(
mainAxisAlignment: MainAxisAlignment.center,

View File

@@ -1,9 +1,7 @@
import 'package:eatvio_app/core/app_router.dart';
import 'package:eatvio_app/core/theme/custom_text_style.dart';
import 'package:eatvio_app/core/theme/theme_helper.dart';
import 'package:eatvio_app/generated/l10n.dart';
import 'package:flutter/material.dart';
import 'package:go_router/go_router.dart';
import 'package:permission_handler/permission_handler.dart';
Future<void> showErrorDialog(BuildContext context, {String? title, String? description, String? buttonTitle, bool? needToOpenSettings}) async {
@@ -45,7 +43,7 @@ Future<void> showErrorDialog(BuildContext context, {String? title, String? descr
alignment: Alignment.centerRight,
child: TextButton(
onPressed: () {
AppRouter.navigatorKey.currentContext?.pop();
Navigator.of(context).pop();
if (needToOpenSettings ?? false) {
openAppSettings();
}

View File

@@ -599,7 +599,9 @@ class _BlogPostCreateScreenState extends State<BlogPostCreateScreen> {
showErrorDialog(context, title: S.current.could_not_update_blog_post);
} else {
if (!mounted) return;
context.pop();
if (context.canPop()) {
context.pop();
}
}
} else {
final result = await blogPostCubit.createBlogPost(
@@ -616,7 +618,9 @@ class _BlogPostCreateScreenState extends State<BlogPostCreateScreen> {
showErrorDialog(context, title: S.current.could_not_publish_blog_post);
} else {
if (!mounted) return;
context.pop();
if (context.canPop()) {
context.pop();
}
}
}
},

View File

@@ -41,13 +41,14 @@ class MoreOptions extends StatelessWidget {
},
child: Row(
children: [
Text(
s.copy_link,
style: TextStyles.textMMedium.copyWith(
color: appTheme.black,
Expanded(
child: Text(
s.copy_link,
style: TextStyles.textMMedium.copyWith(
color: appTheme.black,
),
),
),
const Spacer(),
SvgPicture.asset('assets/icons/copy2.svg', width: 16, height: 20),
],
),
@@ -70,13 +71,14 @@ class MoreOptions extends StatelessWidget {
},
child: Row(
children: [
Text(
s.share,
style: TextStyles.textMMedium.copyWith(
color: appTheme.black,
Expanded(
child: Text(
s.share,
style: TextStyles.textMMedium.copyWith(
color: appTheme.black,
),
),
),
const Spacer(),
SvgPicture.asset('assets/icons/share2.svg', width: 16, height: 20),
],
),
@@ -103,13 +105,14 @@ class MoreOptions extends StatelessWidget {
},
child: Row(
children: [
Text(
s.complain,
style: TextStyles.textMMedium.copyWith(
color: appTheme.black,
Expanded(
child: Text(
s.complain,
style: TextStyles.textMMedium.copyWith(
color: appTheme.black,
),
),
),
const Spacer(),
SvgPicture.asset('assets/icons/complain.svg', width: 16, height: 20),
],
),

View File

@@ -118,7 +118,6 @@ class NotificationWidget extends StatelessWidget {
notification: notification as PersonalDietIsDefinedToCustomerNotification,
),
UnknownNotification() => _UnknownNotificationWidget(notification: notification as UnknownNotification),
// TODO: Handle this case.
};
}
}