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

Make copying nested styles more concise #386

Merged
merged 13 commits into from
Feb 10, 2025
Merged

Conversation

Pante
Copy link
Member

@Pante Pante commented Feb 8, 2025

Describe the changes
Fixes #360

We ended up implementing our own code gen tool. Deeply nested copies can be created via transform functions.

Checklist

  • I have read the CONTRIBUTING.md.
  • I have included the relevant unit/golden tests.
  • I have included the relevant samples.
  • I have updated the documentation accordingly.
  • I have updated the CHANGELOG.md if necessary.

@Copilot Copilot bot review requested due to automatic review settings February 8, 2025 14:14
@Pante Pante requested review from kawaijoe and Daviiddoo February 8, 2025 14:14
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 73 out of 88 changed files in this pull request and generated 1 comment.

Files not reviewed (15)
  • docs/pages/docs/themes.mdx: Language not supported
  • forui/.gitignore: Language not supported
  • forui/lib/foundation.dart: Language not supported
  • forui/lib/src/foundation/focused_outline.dart: Language not supported
  • forui/lib/src/foundation/transform.dart: Language not supported
  • forui/lib/src/localizations/localizations.dart: Language not supported
  • forui/lib/src/theme/color_scheme.dart: Language not supported
  • forui/lib/src/theme/form_field_style.dart: Language not supported
  • forui/lib/src/theme/style.dart: Language not supported
  • forui/lib/src/theme/theme_data.dart: Language not supported
  • forui/lib/src/theme/themes.dart: Language not supported
  • forui/lib/src/theme/typography.dart: Language not supported
  • forui/lib/src/widgets/accordion/accordion.dart: Language not supported
  • forui/lib/src/widgets/alert.dart: Language not supported
  • forui/lib/src/widgets/avatar/avatar.dart: Language not supported

CONTRIBUTING.md Outdated Show resolved Hide resolved
@auto-maid auto-maid bot had a problem deploying to docs-development February 8, 2025 14:16 Failure
@auto-maid auto-maid bot had a problem deploying to docs-development February 8, 2025 14:23 Failure
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@Pante Pante merged commit 470b4ad into main Feb 10, 2025
11 of 12 checks passed
@Pante Pante deleted the experiment/concise-styles branch February 10, 2025 01:01
najm101 pushed a commit to najm101/forui that referenced this pull request Feb 10, 2025
* Refactor FThemeData

* Add forui_internal_gen

* Refactor styles to use forui_internal_gen

* Update documentation

* Remove redundant transform

* refactor styles

* Commit from GitHub Actions (Forui Presubmit)

* Fix failing build

* Commit from GitHub Actions (Forui Internal Gen Presubmit)

* Update CONTRIBUTING.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Fix failing build

---------

Co-authored-by: Pante <Pante@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
najm101 pushed a commit to najm101/forui that referenced this pull request Feb 10, 2025
* Refactor FThemeData

* Add forui_internal_gen

* Refactor styles to use forui_internal_gen

* Update documentation

* Remove redundant transform

* refactor styles

* Commit from GitHub Actions (Forui Presubmit)

* Fix failing build

* Commit from GitHub Actions (Forui Internal Gen Presubmit)

* Update CONTRIBUTING.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Fix failing build

---------

Co-authored-by: Pante <Pante@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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.

Nested Copy with for Styles
3 participants