Merge pull request 'sprint-5' (#3) from sprint-5 into main

Reviewed-on: #3
This commit is contained in:
user8 2025-05-28 13:00:20 +00:00
commit 4bb41c6a6f
9 changed files with 61 additions and 18 deletions

View File

@ -1,6 +1,6 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<application
android:label="matule"
android:label="TitovetsMatule"
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher">
<activity

View File

@ -1,6 +1,7 @@
import 'package:matule_query/matule_query.dart';
class Storage {
final String appMetrikaToken = "ec0227b9-efb1-4d30-811d-4cf57119b100";
final ProductModel productItem = ProductModel(
approximateCost: "",
description: "",

View File

@ -4,4 +4,5 @@ import '../../main.dart';
class StorageUseCase {
ProductModel getProductItem() => storage.productItem;
String getAppMetrikaToken() => storage.appMetrikaToken;
}

View File

@ -1,3 +1,4 @@
import 'package:appmetrica_plugin/appmetrica_plugin.dart';
import 'package:flutter/material.dart';
import 'package:matule/domain/services/exception_caster.dart';
import 'package:matule/domain/use_cases/storage_use_case.dart';
@ -11,6 +12,13 @@ final StorageUseCase storageUseCase = StorageUseCase();
final BaseUseCase useCase = BaseUseCase(startLoading: () {}, endLoading: () {});
final ExceptionCaster eC = ExceptionCaster();
void main() {
runApp(const Application());
AppMetricaConfig get _config =>
AppMetricaConfig(storageUseCase.getAppMetrikaToken(), logs: true);
Future<void> main() async {
AppMetrica.runZoneGuarded(() {
WidgetsFlutterBinding.ensureInitialized();
AppMetrica.activate(_config);
runApp(Application());
});
}

View File

@ -1,6 +1,5 @@
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:flutter_svg/svg.dart';
import 'package:get/get.dart';
import 'package:matule/main.dart';
import 'package:matule/presentation/pages/tabbar.dart';

Binary file not shown.

Binary file not shown.

View File

@ -9,6 +9,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.0.3"
appmetrica_plugin:
dependency: "direct main"
description:
name: appmetrica_plugin
sha256: "6834ac24cef2f84433069d3e20b1c3c144ddc1879685c8fe72c3fcd73c78aa7c"
url: "https://pub.dev"
source: hosted
version: "3.2.0"
archive:
dependency: transitive
description:
@ -129,6 +137,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "0.7.11"
decimal:
dependency: transitive
description:
name: decimal
sha256: "28239b8b929c1bd8618702e6dbc96e2618cf99770bbe9cb040d6cf56a11e4ec3"
url: "https://pub.dev"
source: hosted
version: "3.2.1"
device_frame:
dependency: transitive
description:
@ -336,6 +352,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "5.1.1"
logging:
dependency: transitive
description:
name: logging
sha256: c8245ada5f1717ed44271ed1c26b8ce85ca3228fd2ffdb75468ab01979309d61
url: "https://pub.dev"
source: hosted
version: "1.3.0"
mask_text_input_formatter:
dependency: "direct main"
description:
@ -522,6 +546,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "6.1.5"
rational:
dependency: transitive
description:
name: rational
sha256: cb808fb6f1a839e6fc5f7d8cb3b0a10e1db48b3be102de73938c627f0b636336
url: "https://pub.dev"
source: hosted
version: "2.2.3"
recase:
dependency: transitive
description:

View File

@ -28,6 +28,7 @@ environment:
# the latest version available on pub.dev. To see which dependencies have newer
# versions available, run `flutter pub outdated`.
dependencies:
appmetrica_plugin: ^3.2.0 # Плагин AppMetrika для анализа кликов пользователей
matule_uikit:
git:
url: https://git.skillmad.ru/user8/matule_uikit.git
@ -38,26 +39,27 @@ dependencies:
url: https://git.skillmad.ru/user8/matule_query.git
ref: main
storybook_flutter: ^0.14.1
flutter_svg: ^2.1.0
mask_text_input_formatter: ^2.9.0
storybook_flutter: ^0.14.1 # Библиотека для matule_uikit: позволяет отображать виджеты в удобном формате
flutter_svg: ^2.1.0 # Библиотека для matule_uikit: позволяет использоовать векторную графику
connectivity_plus: ^6.1.4
dio: ^5.8.0+1
intl: ^0.20.2
connectivity_plus: ^6.1.4 # Библиотека для matule_query: позволяет обнаруживать наличие / отсутствие интернета
dio: ^5.8.0+1 # Библиотека для matule_query: позволяет отправлять запросы по протоколу HTTP
get: ^4.7.2 # Библиотека для удобного переключения между экранами
flutter_screenutil: ^5.9.3 # Библиотека для поддержки адаптивности
google_fonts: ^6.2.1
pinput: ^5.0.1
flutter_launcher_icons: ^0.14.3
flutter_native_splash: ^2.4.6
get: ^4.7.2
flutter_screenutil: ^5.9.3
flutter_pdfview: ^1.4.0+1
flutter:
sdk: flutter
sdk: flutter # SDK Flutter
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
google_fonts: ^6.2.1
flutter_pdfview: ^1.4.0+1
flutter_launcher_icons: ^0.14.3
flutter_native_splash: ^2.4.6
pinput: ^5.0.1
mask_text_input_formatter: ^2.9.0
intl: ^0.20.2
cupertino_icons: ^1.0.8
dev_dependencies: