Skip to content

Commit

Permalink
fix/dialog child constraints (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
nank1ro committed Nov 8, 2024
1 parent e5ee3a6 commit b73bf59
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 0.15.3

- **FIX**: `ShadDialog` and `ShadSheet` children constraints.
- **CHORE**: Replace `flutter_svg_plus` dependency with `flutter_svg` and `vector_graphics_plus` with `vector_graphics`.

## 0.15.2

- **FIX**: `ShadDialog` and `ShadSheet` children constraints.
Expand Down
22 changes: 9 additions & 13 deletions lib/src/components/dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -369,20 +369,16 @@ class ShadDialog extends StatelessWidget {
crossAxisAlignment: effectiveCrossAxisAlignment,
children: [
if (title != null)
Flexible(
child: DefaultTextStyle(
style: effectiveTitleStyle,
textAlign: effectiveTitleTextAlign,
child: title!,
),
DefaultTextStyle(
style: effectiveTitleStyle,
textAlign: effectiveTitleTextAlign,
child: title!,
),
if (description != null)
Flexible(
child: DefaultTextStyle(
style: effectiveDescriptionStyle,
textAlign: effectiveDescriptionTextAlign,
child: description!,
),
DefaultTextStyle(
style: effectiveDescriptionStyle,
textAlign: effectiveDescriptionTextAlign,
child: description!,
),
if (child != null)
Flexible(
Expand All @@ -391,7 +387,7 @@ class ShadDialog extends StatelessWidget {
child: child!,
),
),
if (actions.isNotEmpty) Flexible(child: effectiveActions),
if (actions.isNotEmpty) effectiveActions,
].separatedBy(SizedBox(height: effectiveGap)),
),
),
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.15.2
version: 0.15.3
homepage: https://flutter-shadcn-ui.mariuti.com
repository: https://github.com/nank1ro/flutter-shadcn-ui
documentation: https://flutter-shadcn-ui.mariuti.com
Expand Down

0 comments on commit b73bf59

Please sign in to comment.