fix: analyzer

This commit is contained in:
mso7nueh
2025-05-23 12:03:04 +03:00
parent 8dcfa6ee6a
commit b59190e4e8
14 changed files with 58 additions and 63 deletions

View File

@@ -26,7 +26,6 @@ import 'package:eatvio_app/features/profile/presentation/widgets/profile_blog_po
import 'package:eatvio_app/features/profile/presentation/widgets/weight_chart_widget.dart';
import 'package:eatvio_app/core/locator_service.dart';
import 'package:eatvio_app/core/theme/theme_helper.dart';
import 'package:eatvio_app/features/profile/repositories/profile_repository.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
@@ -223,15 +222,6 @@ class _ProfileScreenState extends State<ProfileScreen> {
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
ElevatedButton(onPressed: () async {
await sl<ProfileRepository>().sendEmailCode();
}, child: Text('send email verify code')),
TextFormField(
controller: controller,
),
ElevatedButton(onPressed: () async {
await sl<ProfileRepository>().tryVerifyEmailByCode(controller.text);
}, child: Text('try verify email by code')),
_header(state),
if (state.profile.roles.contains('consultant'))
Column(
@@ -1136,11 +1126,11 @@ class _ProfileScreenState extends State<ProfileScreen> {
onSelected: (value) {
if (value == 'share') {
final box = context.findRenderObject() as RenderBox?;
Share.shareUri(
Uri.parse(
'$baseUrl/ru/profile/${state.profile.slug}',
SharePlus.instance.share(
ShareParams(
uri: Uri.parse('$baseUrl/ru/profile/${state.profile.slug}'),
sharePositionOrigin: box!.localToGlobal(Offset.zero) & box.size,
),
sharePositionOrigin: box!.localToGlobal(Offset.zero) & box.size,
);
} else {
showModalBottomSheet(

View File

@@ -214,11 +214,11 @@ class _ProfileBlogPostWidgetState extends State<ProfileBlogPostWidget> {
),
onTap: () {
final box = context.findRenderObject() as RenderBox?;
Share.shareUri(
Uri.parse(
'$baseUrl/ru/blog_post/${state.blogPosts[widget.index].id}',
SharePlus.instance.share(
ShareParams(
uri: Uri.parse('$baseUrl/ru/blog_post/${state.blogPosts[widget.index].id}'),
sharePositionOrigin: box!.localToGlobal(Offset.zero) & box.size,
),
sharePositionOrigin: box!.localToGlobal(Offset.zero) & box.size,
);
},
),