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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create initial design for TextField #15

Closed
wants to merge 9 commits into from
Closed

Conversation

Luxorum
Copy link
Contributor

@Luxorum Luxorum commented Apr 24, 2023

No description provided.

Copy link
Collaborator

@solid-vovabeloded solid-vovabeloded left a comment

Choose a reason for hiding this comment

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

Great job, @Luxorum. I've added a coupple of suggestions here - please, take a look.

example/lib/app.dart Outdated Show resolved Hide resolved
example/lib/app.dart Outdated Show resolved Hide resolved
lib/presentation/widgets/custom_text_field_controller.dart Outdated Show resolved Hide resolved
lib/presentation/widgets/custom_text_field_controller.dart Outdated Show resolved Hide resolved
lib/presentation/widgets/custom_text_field_controller.dart Outdated Show resolved Hide resolved
lib/presentation/widgets/custom_text_field_controller.dart Outdated Show resolved Hide resolved
lib/presentation/widgets/custom_text_field_controller.dart Outdated Show resolved Hide resolved
lib/presentation/widgets/custom_text_field_controller.dart Outdated Show resolved Hide resolved
lib/presentation/widgets/custom_text_field_controller.dart Outdated Show resolved Hide resolved
Copy link
Collaborator

@solid-vovabeloded solid-vovabeloded left a comment

Choose a reason for hiding this comment

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

Almost there, @Luxorum! I've added a few more suggestions here - please, take a look an let me know what do you think.

example/lib/app.dart Outdated Show resolved Hide resolved
lib/presentation/language_tool_text_field.dart Outdated Show resolved Hide resolved
Copy link
Collaborator

@solid-vovabeloded solid-vovabeloded left a comment

Choose a reason for hiding this comment

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

Almost there, @Luxorum! I've added few more minor suggestions here - please, take a look.

}

children.add(
TextSpan(text: text.substring(previousMistakePosition, mistakeStart)),
Copy link
Collaborator

Choose a reason for hiding this comment

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

What if mistakeStart is our of range?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There will be no errors anyways, cause if statement checks mistake.start + mistake.length

WidgetSpan(
child: Text(
mistakeCharacter,
style: style,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why do we need it here? I think the TextSpan sets the proper TextStyle for all of its children.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, seems that Text overrides style by it's own

@solid-danylokhvan solid-danylokhvan deleted the feat/design-text-field branch July 11, 2023 08:15
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.

None yet

3 participants