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

merge DefaultTextTheme instead of creating a new TextStyle #46

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

maeddin
Copy link

@maeddin maeddin commented Jun 26, 2023

No description provided.

@@ -137,7 +137,7 @@ class SalomonBottomBar extends StatelessWidget {
: EdgeInsets.only(
left: itemPadding.left,
right: itemPadding.right / 2),
child: DefaultTextStyle(
child: DefaultTextStyle.merge(
style: TextStyle(

Choose a reason for hiding this comment

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

I think DefaultTextStyle is sufficient in this case. DefaultTextStyle.merge could also be used in this case, but it would only be necessary if some of the Text widgets in the subtree have an explicit style set that needs to be merged with the default style. So DefaultTextStyle is sufficient since there is only one Text widget in the given code,.

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

2 participants