Skip to content

Conversation

@micheljung
Copy link

Description

I want to use Alchemist for creating screenshots for app stores. Unfortunately, it always renders the name and an 8px spacer below it. While the name can be "removed" by giving it 0px size via theme, the spacer can not be removed.

With this change, the user can disable the rendering of the name and the spacer.

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

@micheljung micheljung changed the title WIP Add renderName option feat: Add renderName option Nov 30, 2024
Comment on lines +83 to +91
if (config.renderName) ...<Widget>[
Text(
name,
style: testTheme.nameTextStyle,
textHeightBehavior: const TextHeightBehavior(
applyHeightToFirstAscent: false,
),
),
),
const SizedBox(height: 8),
const SizedBox(height: 8)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
if (config.renderName) ...<Widget>[
Text(
name,
style: testTheme.nameTextStyle,
textHeightBehavior: const TextHeightBehavior(
applyHeightToFirstAscent: false,
),
),
),
const SizedBox(height: 8),
const SizedBox(height: 8)
if (config.renderName) ...[
Text(
name,
style: testTheme.nameTextStyle,
textHeightBehavior: const TextHeightBehavior(
applyHeightToFirstAscent: false,
),
),
const SizedBox(height: 8),

probably updating branch will complain about this

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