Skip to content

Commit

Permalink
Fix/form fields double padding (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
nank1ro authored Jun 16, 2024
1 parent 1c9f813 commit f71ed25
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.5.4

- Fix double padding on form fields.

## 0.5.3

- Update dependencies
Expand Down
4 changes: 3 additions & 1 deletion lib/src/components/form/field.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ class ShadFormBuilderField<T> extends FormField<T> {
hasError ? error ?? Text(field.errorText!) : null;

return ShadDecorator(
decoration: decoration,
// The decoration is set to none because the component itself has
// its own decoration
decoration: ShadDecoration.none,
label: label,
hasError: hasError,
error: effectiveError,
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: shadcn_ui
description: shadcn-ui ported in Flutter. Awesome UI components for Flutter, fully customizable.
version: 0.5.3
version: 0.5.4
homepage: https://mariuti.com/shadcn-ui
repository: https://github.com/nank1ro/flutter-shadcn-ui
documentation: https://mariuti.com/shadcn-ui
Expand Down

0 comments on commit f71ed25

Please sign in to comment.