Skip to content

Commit

Permalink
EWM-304. Choose network screen remove network description (#533)
Browse files Browse the repository at this point in the history
  • Loading branch information
knightsforce authored Sep 25, 2024
1 parent e837a73 commit e1e2bba
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 46 deletions.
2 changes: 0 additions & 2 deletions assets/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
"skipWord": "Skip",
"letsCheckSeedPhrase": "Let’s check your seed phrase",
"chooseNetwork": "Choose a network",
"chooseNetworkEverDescription": "Benefit from fast transactions,\nscalability, and seamless integration\nwith decentralized applications.",
"chooseNetworkVenomDescription": "Access a range of digital assets and\nservices with ease, thanks to its\nstreamlined and efficient blockchain\ninfrastructure.",
"checkSeedPhraseCorrectly": "We’ll verify that you wrote your seed phrase correctly. Please select the correct words to continue.",
"seedIsWrong": "The seed phrase is wrong",
"selectNetworkNewWalletDescription": "Select the network for your new wallet.\nThis will determine the blockchain and\ncryptocurrency you'll be using.",
Expand Down
2 changes: 0 additions & 2 deletions assets/translations/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
"skipWord": "Skip",
"letsCheckSeedPhrase": "Let’s check your seed phrase",
"chooseNetwork": "Choose a network",
"chooseNetworkEverDescription": "Benefit from fast transactions,\nscalability, and seamless integration\nwith decentralized applications.",
"chooseNetworkVenomDescription": "Access a range of digital assets and\nservices with ease, thanks to its\nstreamlined and efficient blockchain\ninfrastructure.",
"checkSeedPhraseCorrectly": "We’ll verify that you wrote your seed phrase correctly. Please select the correct words to continue.",
"seedIsWrong": "The seed phrase is wrong",
"selectNetworkNewWalletDescription": "Select the network for your new wallet.\nThis will determine the blockchain and\ncryptocurrency you'll be using.",
Expand Down
2 changes: 0 additions & 2 deletions lib/feature/choose_network/choose_network_screen_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ class ChooseNetworkScreenModel extends ElementaryModel with ConnectionMixin {
id: everMainnetProtoID,
icon: Assets.images.everVector,
title: LocaleKeys.everscale.tr(),
description: LocaleKeys.chooseNetworkEverDescription.tr(),
),
);
continue;
Expand All @@ -87,7 +86,6 @@ class ChooseNetworkScreenModel extends ElementaryModel with ConnectionMixin {
id: venomMainnetProtoID,
icon: Assets.images.venomVector,
title: LocaleKeys.venom.tr(),
description: LocaleKeys.chooseNetworkVenomDescription.tr(),
),
);
continue;
Expand Down
2 changes: 0 additions & 2 deletions lib/feature/choose_network/data/choose_network_item_data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@ class ChooseNetworkItemData {
required this.id,
required this.icon,
required this.title,
required this.description,
});

final String id;
final SvgGenImage icon;
final String title;
final String description;
}
55 changes: 19 additions & 36 deletions lib/feature/choose_network/widgets/choose_network_item.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,29 +28,27 @@ class ChooseNetworkItem extends StatelessWidget {
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Row(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Padding(
padding: const EdgeInsets.only(right: DimensSizeV2.d12),
child: _Icon(data.icon),
),
Flexible(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
_Name(data.title),
_Description(data.description),
],
Flexible(
child: Row(
mainAxisSize: MainAxisSize.min,
children: [
Padding(
padding: const EdgeInsets.only(right: DimensSizeV2.d12),
child: _Icon(data.icon),
),
),
],
Flexible(
child: _Name(data.title),
),
],
),
),
Icon(
LucideIcons.chevronRight,
size: DimensSizeV2.d20,
color: context.themeStyleV2.colors.primaryA,
Padding(
padding: const EdgeInsets.only(left: DimensSizeV2.d24),
child: Icon(
LucideIcons.chevronRight,
size: DimensSizeV2.d20,
color: context.themeStyleV2.colors.primaryA,
),
),
],
),
Expand Down Expand Up @@ -101,18 +99,3 @@ class _Name extends StatelessWidget {
);
}
}

class _Description extends StatelessWidget {
const _Description(this.description);

final String description;

@override
Widget build(BuildContext context) {
return PrimaryText(
description,
type: PrimaryTextType.descriptionSmall,
textAlign: TextAlign.start,
);
}
}
2 changes: 0 additions & 2 deletions lib/generated/locale_keys.g.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ abstract class LocaleKeys {
static const skipWord = 'skipWord';
static const letsCheckSeedPhrase = 'letsCheckSeedPhrase';
static const chooseNetwork = 'chooseNetwork';
static const chooseNetworkEverDescription = 'chooseNetworkEverDescription';
static const chooseNetworkVenomDescription = 'chooseNetworkVenomDescription';
static const checkSeedPhraseCorrectly = 'checkSeedPhraseCorrectly';
static const seedIsWrong = 'seedIsWrong';
static const selectNetworkNewWalletDescription =
Expand Down

0 comments on commit e1e2bba

Please sign in to comment.