Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Ewm 437 Elementary EnterSeedPhrase screen #722

Open
wants to merge 4 commits into
base: dev
Choose a base branch
from

Conversation

knightsforce
Copy link
Collaborator

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🛠️ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • ✅ Build configuration change
  • 📝 Documentation
  • 🗑️ Chore

late final List<EnterSeedPhraseInputData> _inputDataList = List.unmodifiable(
[
for (int i = 0; i < model.seedPhraseWordsCount.max; i++)
EnterSeedPhraseInputData.init(i)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Можно передавать controller и focusNode через конструктор и тогда EnterSeedPhraseInputData.dispose не нужен будет:

EnterSeedPhraseInputData(
  index: i,
  controller: createTextEditingController(),
  focusNode: createFocusNode(),
);

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Не стал так делать, чтобы инкапсулировать создание.

Если передавать из вне, то можно и подписываться не через класс data и в целом data просто контейнер.

Хотелось сделать его более осмысленным.

# Conflicts:
#	lib/feature/add_seed/enter_seed_phrase/cubit/enter_seed_phrase_cubit.dart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants