diff --git a/lib/src/core/utils/assets/assets.gen.dart b/lib/src/core/utils/assets/assets.gen.dart deleted file mode 100644 index 5dd6537..0000000 --- a/lib/src/core/utils/assets/assets.gen.dart +++ /dev/null @@ -1,179 +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 - -import 'package:flutter/widgets.dart'; - -class $AssetsIconsGen { - const $AssetsIconsGen(); - - /// File path: assets/icons/clipboard.png - AssetGenImage get clipboard => - const AssetGenImage('assets/icons/clipboard.png'); - - /// File path: assets/icons/ic_dark_mode.svg - String get icDarkMode => 'assets/icons/ic_dark_mode.svg'; - - /// File path: assets/icons/ic_light_mode.svg - String get icLightMode => 'assets/icons/ic_light_mode.svg'; - - /// File path: assets/icons/ic_logo_dark.svg - String get icLogoDark => 'assets/icons/ic_logo_dark.svg'; - - /// File path: assets/icons/ic_logo_light.svg - String get icLogoLight => 'assets/icons/ic_logo_light.svg'; - - /// File path: assets/icons/ic_welcome_pactus.svg - String get icWelcomePactus => 'assets/icons/ic_welcome_pactus.svg'; - - /// File path: assets/icons/lock.png - AssetGenImage get lock => const AssetGenImage('assets/icons/lock.png'); - - /// File path: assets/icons/logo.png - AssetGenImage get logo => const AssetGenImage('assets/icons/logo.png'); - - /// List of all assets - List get values => [ - clipboard, - icDarkMode, - icLightMode, - icLogoDark, - icLogoLight, - icWelcomePactus, - lock, - logo - ]; -} - -class $AssetsImagesGen { - const $AssetsImagesGen(); - - /// File path: assets/images/gears.png - AssetGenImage get gears => const AssetGenImage('assets/images/gears.png'); - - /// File path: assets/images/gift.png - AssetGenImage get gift => const AssetGenImage('assets/images/gift.png'); - - /// File path: assets/images/logo_name.png - AssetGenImage get logoName => - const AssetGenImage('assets/images/logo_name.png'); - - /// File path: assets/images/master_password.png - AssetGenImage get masterPassword => - const AssetGenImage('assets/images/master_password.png'); - - /// File path: assets/images/splash.png - AssetGenImage get splash => const AssetGenImage('assets/images/splash.png'); - - /// File path: assets/images/welcome_pic.png - AssetGenImage get welcomePic => - const AssetGenImage('assets/images/welcome_pic.png'); - - /// File path: assets/images/welcome_screen_pic.png - AssetGenImage get welcomeScreenPic => - const AssetGenImage('assets/images/welcome_screen_pic.png'); - - /// List of all assets - List get values => [ - gears, - gift, - logoName, - masterPassword, - splash, - welcomePic, - welcomeScreenPic - ]; -} - -class Assets { - Assets._(); - - static const $AssetsIconsGen icons = $AssetsIconsGen(); - static const $AssetsImagesGen images = $AssetsImagesGen(); -} - -class AssetGenImage { - const AssetGenImage( - this._assetName, { - this.size, - this.flavors = const {}, - }); - - final String _assetName; - - final Size? size; - final Set flavors; - - Image image({ - Key? key, - AssetBundle? bundle, - ImageFrameBuilder? frameBuilder, - ImageErrorWidgetBuilder? errorBuilder, - String? semanticLabel, - bool excludeFromSemantics = false, - double? scale, - double? width, - double? height, - Color? color, - Animation? opacity, - BlendMode? colorBlendMode, - BoxFit? fit, - AlignmentGeometry alignment = Alignment.center, - ImageRepeat repeat = ImageRepeat.noRepeat, - Rect? centerSlice, - bool matchTextDirection = false, - bool gaplessPlayback = true, - bool isAntiAlias = false, - String? package, - FilterQuality filterQuality = FilterQuality.low, - int? cacheWidth, - int? cacheHeight, - }) { - return Image.asset( - _assetName, - key: key, - bundle: bundle, - frameBuilder: frameBuilder, - errorBuilder: errorBuilder, - semanticLabel: semanticLabel, - excludeFromSemantics: excludeFromSemantics, - scale: scale, - width: width, - height: height, - color: color, - opacity: opacity, - colorBlendMode: colorBlendMode, - fit: fit, - alignment: alignment, - repeat: repeat, - centerSlice: centerSlice, - matchTextDirection: matchTextDirection, - gaplessPlayback: gaplessPlayback, - isAntiAlias: isAntiAlias, - package: package, - filterQuality: filterQuality, - cacheWidth: cacheWidth, - cacheHeight: cacheHeight, - ); - } - - ImageProvider provider({ - AssetBundle? bundle, - String? package, - }) { - return AssetImage( - _assetName, - bundle: bundle, - package: package, - ); - } - - String get path => _assetName; - - String get keyName => _assetName; -} diff --git a/lib/src/core/utils/gen/assets/assets.gen.dart b/lib/src/core/utils/gen/assets/assets.gen.dart index 917d4f1..f019c9a 100644 --- a/lib/src/core/utils/gen/assets/assets.gen.dart +++ b/lib/src/core/utils/gen/assets/assets.gen.dart @@ -59,25 +59,13 @@ class $AssetsImagesGen { /// File path: assets/images/splash.png AssetGenImage get splash => const AssetGenImage('assets/images/splash.png'); - /// List of all assets - List get values => - [gears, gift, logoName, masterPassword, splash]; -} - -class $AssetsTranslationsGen { - const $AssetsTranslationsGen(); - - /// File path: assets/translations/en.json - String get en => 'assets/translations/en.json'; - - /// File path: assets/translations/es.json - String get es => 'assets/translations/es.json'; - - /// File path: assets/translations/fr.json - String get fr => 'assets/translations/fr.json'; + /// File path: assets/images/welcome_pic.png + AssetGenImage get welcomePic => + const AssetGenImage('assets/images/welcome_pic.png'); /// List of all assets - List get values => [en, es, fr]; + List get values => + [gears, gift, logoName, masterPassword, splash, welcomePic]; } class Assets { @@ -85,7 +73,6 @@ class Assets { static const $AssetsIconsGen icons = $AssetsIconsGen(); static const $AssetsImagesGen images = $AssetsImagesGen(); - static const $AssetsTranslationsGen translations = $AssetsTranslationsGen(); } class AssetGenImage { diff --git a/lib/src/core/utils/gen/assets/fonts.gen.dart b/lib/src/core/utils/gen/assets/fonts.gen.dart deleted file mode 100644 index 84dd275..0000000 --- a/lib/src/core/utils/gen/assets/fonts.gen.dart +++ /dev/null @@ -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: Inter - static const String inter = 'Inter'; -} diff --git a/lib/src/core/utils/gen/localization/codegen_loader.dart b/lib/src/core/utils/gen/localization/codegen_loader.dart index 7954656..939e428 100644 --- a/lib/src/core/utils/gen/localization/codegen_loader.dart +++ b/lib/src/core/utils/gen/localization/codegen_loader.dart @@ -33,9 +33,7 @@ class CodegenLoader { 'switch_language': 'Switch language', 'applications': 'Applications', 'welcome_title': 'Welcome to the Future of Blockchain with Pactus!', - 'welcome_description': 'Where the future of blockchain unfolds with trust' - ' and transparency in every transaction. Join us in shaping' - ' a decentralized revolution!', + 'welcome_description': 'Where the future of blockchain unfolds with trust and transparency in every transaction. Join us in shaping a decentralized revolution!', 'start_button_text': 'Get Started', }; static const Map frFR = { @@ -45,9 +43,7 @@ class CodegenLoader { 'switch_language': 'Changer de langue', 'applications': 'Applications', 'welcome_title': 'Bienvenue dans le futur de la Blockchain avec Pactus!', - 'welcome_description': 'Là où lavenir de la blockchain se dévoile avec' - ' confiance et transparence dans chaque transaction. Rejoignez-nous' - ' pour façonner une révolution décentralisée!', + 'welcome_description': 'Là où lavenir de la blockchain se dévoile avec confiance et transparence dans chaque transaction. Rejoignez-nous pour façonner une révolution décentralisée!', 'start_button_text': 'Commencer', }; static const Map esES = { @@ -57,9 +53,7 @@ class CodegenLoader { 'switch_language': 'Cambiar idioma', 'applications': 'Applications', 'welcome_title': 'Bienvenido al futuro de la cadena de bloques con Pactus!', - 'welcome_description': 'Donde el futuro de la cadena de bloques' - ' se desarrolla con confianza y transparencia en cada transacción.' - ' Únase a nosotros para dar forma a una revolución descentralizada!', + 'welcome_description': 'Donde el futuro de la cadena de bloques se desarrolla con confianza y transparencia en cada transacción. Únase a nosotros para dar forma a una revolución descentralizada!', 'start_button_text': 'Empezar', }; diff --git a/lib/src/features/welcome/presentation/screen/welcome_screen.dart b/lib/src/features/welcome/presentation/screen/welcome_screen.dart index 0f677c8..4d24486 100644 --- a/lib/src/features/welcome/presentation/screen/welcome_screen.dart +++ b/lib/src/features/welcome/presentation/screen/welcome_screen.dart @@ -4,7 +4,7 @@ import 'package:go_router/go_router.dart'; import 'package:gui/src/core/common/colors/app_colors.dart'; import 'package:gui/src/core/common/widgets/custom_filled_button.dart'; import 'package:gui/src/core/router/route_name.dart'; -import 'package:gui/src/core/utils/assets/assets.gen.dart'; +import 'package:gui/src/core/utils/gen/assets/assets.gen.dart'; import 'package:gui/src/core/utils/gen/localization/locale_keys.dart'; import 'package:gui/src/features/main/language/core/localization_extension.dart'; import 'package:pactus_gui_widgetbook/app_styles.dart'; diff --git a/pubspec.yaml b/pubspec.yaml index c94dd0d..365b6ce 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -47,7 +47,7 @@ dev_dependencies: json_serializable: ^6.5.0 flutter_gen: - output: lib/src/core/utils/assets # Optional (default: libf/gen/) + output: lib/src/core/utils/gen/assets # Optional (default: libf/gen/) line_length: 80 # Optional (default: 80) flutter: