mirror of
https://github.com/smmarty/friflex_flutter_starter.git
synced 2025-12-22 09:30:45 +00:00
fix(assets): удалить неиспользуемые assets (#29)
Co-authored-by: petrovyuri <petrovyuri@example.com>
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -13,15 +13,15 @@ final class _Dev {
|
|||||||
static const String baseUrl = 'https://dev';
|
static const String baseUrl = 'https://dev';
|
||||||
|
|
||||||
static const List<int> _enviedkeysecretKey = <int>[
|
static const List<int> _enviedkeysecretKey = <int>[
|
||||||
1144186709,
|
1799992456,
|
||||||
921404830,
|
3121235721,
|
||||||
4081271781,
|
1896517115,
|
||||||
];
|
];
|
||||||
|
|
||||||
static const List<int> _envieddatasecretKey = <int>[
|
static const List<int> _envieddatasecretKey = <int>[
|
||||||
1144186673,
|
1799992556,
|
||||||
921404923,
|
3121235820,
|
||||||
4081271699,
|
1896517005,
|
||||||
];
|
];
|
||||||
|
|
||||||
static final String secretKey = String.fromCharCodes(
|
static final String secretKey = String.fromCharCodes(
|
||||||
@@ -38,33 +38,33 @@ final class _Dev {
|
|||||||
// generated_from: env/prod.env
|
// generated_from: env/prod.env
|
||||||
final class _Prod {
|
final class _Prod {
|
||||||
static const List<int> _enviedkeybaseUrl = <int>[
|
static const List<int> _enviedkeybaseUrl = <int>[
|
||||||
3830062036,
|
1627073061,
|
||||||
1024953349,
|
1329144317,
|
||||||
2723997296,
|
4010373711,
|
||||||
2959773775,
|
41847181,
|
||||||
4255295633,
|
869222509,
|
||||||
114701674,
|
509998400,
|
||||||
1920572043,
|
1912743375,
|
||||||
3423730200,
|
3591333682,
|
||||||
3647804248,
|
1441008454,
|
||||||
2815792265,
|
2168353742,
|
||||||
3038381766,
|
3600711694,
|
||||||
655048609,
|
2824342757,
|
||||||
];
|
];
|
||||||
|
|
||||||
static const List<int> _envieddatabaseUrl = <int>[
|
static const List<int> _envieddatabaseUrl = <int>[
|
||||||
3830062012,
|
1627073101,
|
||||||
1024953457,
|
1329144201,
|
||||||
2723997188,
|
4010373691,
|
||||||
2959773759,
|
41847293,
|
||||||
4255295714,
|
869222430,
|
||||||
114701648,
|
509998458,
|
||||||
1920572068,
|
1912743392,
|
||||||
3423730231,
|
3591333661,
|
||||||
3647804200,
|
1441008438,
|
||||||
2815792379,
|
2168353724,
|
||||||
3038381737,
|
3600711777,
|
||||||
655048645,
|
2824342657,
|
||||||
];
|
];
|
||||||
|
|
||||||
static final String baseUrl = String.fromCharCodes(
|
static final String baseUrl = String.fromCharCodes(
|
||||||
@@ -76,17 +76,17 @@ final class _Prod {
|
|||||||
);
|
);
|
||||||
|
|
||||||
static const List<int> _enviedkeysecretKey = <int>[
|
static const List<int> _enviedkeysecretKey = <int>[
|
||||||
359753139,
|
491371727,
|
||||||
3208048313,
|
838972038,
|
||||||
1722903860,
|
2580624111,
|
||||||
3044498179,
|
1889389419,
|
||||||
];
|
];
|
||||||
|
|
||||||
static const List<int> _envieddatasecretKey = <int>[
|
static const List<int> _envieddatasecretKey = <int>[
|
||||||
359753155,
|
491371711,
|
||||||
3208048331,
|
838972148,
|
||||||
1722903899,
|
2580624000,
|
||||||
3044498279,
|
1889389327,
|
||||||
];
|
];
|
||||||
|
|
||||||
static final String secretKey = String.fromCharCodes(
|
static final String secretKey = String.fromCharCodes(
|
||||||
@@ -103,35 +103,35 @@ final class _Prod {
|
|||||||
// generated_from: env/stage.env
|
// generated_from: env/stage.env
|
||||||
final class _Stage {
|
final class _Stage {
|
||||||
static const List<int> _enviedkeybaseUrl = <int>[
|
static const List<int> _enviedkeybaseUrl = <int>[
|
||||||
2791397647,
|
585835488,
|
||||||
1739207173,
|
3326410961,
|
||||||
306419752,
|
3188945183,
|
||||||
1371918084,
|
460492541,
|
||||||
4062400488,
|
1928378853,
|
||||||
3004897854,
|
1675035574,
|
||||||
2820011348,
|
2754976633,
|
||||||
1751321626,
|
2459126129,
|
||||||
3103957517,
|
3745790828,
|
||||||
2168627914,
|
3098981050,
|
||||||
1003673382,
|
99445498,
|
||||||
1168070657,
|
3535573105,
|
||||||
568662299,
|
3875375463,
|
||||||
];
|
];
|
||||||
|
|
||||||
static const List<int> _envieddatabaseUrl = <int>[
|
static const List<int> _envieddatabaseUrl = <int>[
|
||||||
2791397735,
|
585835400,
|
||||||
1739207281,
|
3326410917,
|
||||||
306419804,
|
3188945259,
|
||||||
1371918196,
|
460492429,
|
||||||
4062400411,
|
1928378774,
|
||||||
3004897796,
|
1675035532,
|
||||||
2820011387,
|
2754976598,
|
||||||
1751321653,
|
2459126110,
|
||||||
3103957630,
|
3745790751,
|
||||||
2168627902,
|
3098981070,
|
||||||
1003673415,
|
99445403,
|
||||||
1168070758,
|
3535573014,
|
||||||
568662398,
|
3875375362,
|
||||||
];
|
];
|
||||||
|
|
||||||
static final String baseUrl = String.fromCharCodes(
|
static final String baseUrl = String.fromCharCodes(
|
||||||
@@ -143,19 +143,19 @@ final class _Stage {
|
|||||||
);
|
);
|
||||||
|
|
||||||
static const List<int> _enviedkeysecretKey = <int>[
|
static const List<int> _enviedkeysecretKey = <int>[
|
||||||
2132342089,
|
986583346,
|
||||||
2579069434,
|
12639897,
|
||||||
3904165526,
|
2122410836,
|
||||||
3391356107,
|
1036379862,
|
||||||
1192880530,
|
1792372112,
|
||||||
];
|
];
|
||||||
|
|
||||||
static const List<int> _envieddatasecretKey = <int>[
|
static const List<int> _envieddatasecretKey = <int>[
|
||||||
2132342074,
|
986583361,
|
||||||
2579069326,
|
12639981,
|
||||||
3904165623,
|
2122410805,
|
||||||
3391356076,
|
1036379825,
|
||||||
1192880631,
|
1792372213,
|
||||||
];
|
];
|
||||||
|
|
||||||
static final String secretKey = String.fromCharCodes(
|
static final String secretKey = String.fromCharCodes(
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:friflex_starter/app/app_context_ext.dart';
|
import 'package:friflex_starter/app/app_context_ext.dart';
|
||||||
import 'package:friflex_starter/app/theme/app_colors_scheme.dart';
|
import 'package:friflex_starter/app/theme/app_colors_scheme.dart';
|
||||||
import 'package:friflex_starter/gen/assets.gen.dart';
|
|
||||||
import 'package:friflex_starter/gen/fonts.gen.dart';
|
|
||||||
|
|
||||||
/// {@template lang_screen}
|
/// {@template lang_screen}
|
||||||
/// Экран для отладки и тестирования локализации приложения.
|
/// Экран для отладки и тестирования локализации приложения.
|
||||||
@@ -42,18 +40,12 @@ class LangScreen extends StatelessWidget {
|
|||||||
const SizedBox(height: 16),
|
const SizedBox(height: 16),
|
||||||
Text(
|
Text(
|
||||||
'Тестовое слово bold: ${context.l10n.helloWorld}',
|
'Тестовое слово bold: ${context.l10n.helloWorld}',
|
||||||
style: TextStyle(
|
style: TextStyle(color: context.appColors.testColor),
|
||||||
color: context.appColors.testColor,
|
|
||||||
fontFamily: Assets.fonts.montserratBold,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
const SizedBox(height: 16),
|
const SizedBox(height: 16),
|
||||||
Text(
|
Text(
|
||||||
'Тестовое слово medium: ${context.l10n.helloWorld}',
|
'Тестовое слово medium: ${context.l10n.helloWorld}',
|
||||||
style: TextStyle(
|
style: TextStyle(color: context.appColors.testColor),
|
||||||
color: context.appColors.testColor,
|
|
||||||
fontFamily: FontFamily.montserrat,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
const SizedBox(height: 16),
|
const SizedBox(height: 16),
|
||||||
Text('Текущий язык: ${context.l10n.localeName}'),
|
Text('Текущий язык: ${context.l10n.localeName}'),
|
||||||
|
|||||||
@@ -13,34 +13,6 @@ import 'package:flutter_svg/flutter_svg.dart' as _svg;
|
|||||||
import 'package:lottie/lottie.dart' as _lottie;
|
import 'package:lottie/lottie.dart' as _lottie;
|
||||||
import 'package:vector_graphics/vector_graphics.dart' as _vg;
|
import 'package:vector_graphics/vector_graphics.dart' as _vg;
|
||||||
|
|
||||||
class $AssetsFontsGen {
|
|
||||||
const $AssetsFontsGen();
|
|
||||||
|
|
||||||
/// File path: assets/fonts/Montserrat-Bold.ttf
|
|
||||||
String get montserratBold => 'assets/fonts/Montserrat-Bold.ttf';
|
|
||||||
|
|
||||||
/// File path: assets/fonts/Montserrat-ExtraBold.ttf
|
|
||||||
String get montserratExtraBold => 'assets/fonts/Montserrat-ExtraBold.ttf';
|
|
||||||
|
|
||||||
/// File path: assets/fonts/Montserrat-Medium.ttf
|
|
||||||
String get montserratMedium => 'assets/fonts/Montserrat-Medium.ttf';
|
|
||||||
|
|
||||||
/// File path: assets/fonts/Montserrat-Regular.ttf
|
|
||||||
String get montserratRegular => 'assets/fonts/Montserrat-Regular.ttf';
|
|
||||||
|
|
||||||
/// File path: assets/fonts/Montserrat-SemiBold.ttf
|
|
||||||
String get montserratSemiBold => 'assets/fonts/Montserrat-SemiBold.ttf';
|
|
||||||
|
|
||||||
/// List of all assets
|
|
||||||
List<String> get values => [
|
|
||||||
montserratBold,
|
|
||||||
montserratExtraBold,
|
|
||||||
montserratMedium,
|
|
||||||
montserratRegular,
|
|
||||||
montserratSemiBold,
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
class $AssetsIconsGen {
|
class $AssetsIconsGen {
|
||||||
const $AssetsIconsGen();
|
const $AssetsIconsGen();
|
||||||
|
|
||||||
@@ -63,9 +35,8 @@ class $AssetsLottieGen {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class Assets {
|
class Assets {
|
||||||
Assets._();
|
const Assets._();
|
||||||
|
|
||||||
static const $AssetsFontsGen fonts = $AssetsFontsGen();
|
|
||||||
static const $AssetsIconsGen icons = $AssetsIconsGen();
|
static const $AssetsIconsGen icons = $AssetsIconsGen();
|
||||||
static const $AssetsLottieGen lottie = $AssetsLottieGen();
|
static const $AssetsLottieGen lottie = $AssetsLottieGen();
|
||||||
}
|
}
|
||||||
@@ -171,6 +142,9 @@ class LottieGenImage {
|
|||||||
bool? addRepaintBoundary,
|
bool? addRepaintBoundary,
|
||||||
FilterQuality? filterQuality,
|
FilterQuality? filterQuality,
|
||||||
void Function(String)? onWarning,
|
void Function(String)? onWarning,
|
||||||
|
_lottie.LottieDecoder? decoder,
|
||||||
|
_lottie.RenderCache? renderCache,
|
||||||
|
bool? backgroundLoading,
|
||||||
}) {
|
}) {
|
||||||
return _lottie.Lottie.asset(
|
return _lottie.Lottie.asset(
|
||||||
_assetName,
|
_assetName,
|
||||||
@@ -195,6 +169,9 @@ class LottieGenImage {
|
|||||||
addRepaintBoundary: addRepaintBoundary,
|
addRepaintBoundary: addRepaintBoundary,
|
||||||
filterQuality: filterQuality,
|
filterQuality: filterQuality,
|
||||||
onWarning: onWarning,
|
onWarning: onWarning,
|
||||||
|
decoder: decoder,
|
||||||
|
renderCache: renderCache,
|
||||||
|
backgroundLoading: backgroundLoading,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,15 +0,0 @@
|
|||||||
/// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
||||||
/// *****************************************************
|
|
||||||
/// FlutterGen
|
|
||||||
/// *****************************************************
|
|
||||||
|
|
||||||
// coverage:ignore-file
|
|
||||||
// ignore_for_file: type=lint
|
|
||||||
// ignore_for_file: directives_ordering,unnecessary_import,implicit_dynamic_list_literal,deprecated_member_use
|
|
||||||
|
|
||||||
class FontFamily {
|
|
||||||
FontFamily._();
|
|
||||||
|
|
||||||
/// Font family: Montserrat
|
|
||||||
static const String montserrat = 'Montserrat';
|
|
||||||
}
|
|
||||||
15
pubspec.yaml
15
pubspec.yaml
@@ -61,23 +61,8 @@ flutter:
|
|||||||
generate: true
|
generate: true
|
||||||
assets:
|
assets:
|
||||||
- assets/icons/
|
- assets/icons/
|
||||||
- assets/fonts/
|
|
||||||
- assets/lottie/
|
- assets/lottie/
|
||||||
|
|
||||||
fonts:
|
|
||||||
- family: Montserrat
|
|
||||||
fonts:
|
|
||||||
- asset: assets/fonts/Montserrat-ExtraBold.ttf
|
|
||||||
weight: 800
|
|
||||||
- asset: assets/fonts/Montserrat-Bold.ttf
|
|
||||||
weight: 700
|
|
||||||
- asset: assets/fonts/Montserrat-SemiBold.ttf
|
|
||||||
weight: 600
|
|
||||||
- asset: assets/fonts/Montserrat-Medium.ttf
|
|
||||||
weight: 500
|
|
||||||
- asset: assets/fonts/Montserrat-Regular.ttf
|
|
||||||
weight: 400
|
|
||||||
|
|
||||||
flutter_gen:
|
flutter_gen:
|
||||||
integrations:
|
integrations:
|
||||||
flutter_svg: true
|
flutter_svg: true
|
||||||
|
|||||||
Reference in New Issue
Block a user