From 254e669d157fcc16421a98ef46018edc3cca800a Mon Sep 17 00:00:00 2001 From: LazySoul Date: Thu, 13 Feb 2025 01:27:30 +0900 Subject: [PATCH] =?UTF-8?q?bottomSheetHeader=20=EB=A0=88=EC=9D=B4=EC=95=84?= =?UTF-8?q?=EC=9B=83=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/pubspec.lock | 2 +- example/pubspec.yaml | 2 +- example/pubspec_overrides.yaml | 2 +- lib/src/bottom_sheet/title/bottom_sheet_header.dart | 7 +++++-- pubspec.yaml | 2 +- 5 files changed, 9 insertions(+), 6 deletions(-) diff --git a/example/pubspec.lock b/example/pubspec.lock index 8f4c4ca..91eb2c7 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -598,7 +598,7 @@ packages: path: ".." relative: true source: path - version: "0.0.29" + version: "0.0.30" rxdart: dependency: transitive description: diff --git a/example/pubspec.yaml b/example/pubspec.yaml index b89b93e..a29d29b 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -10,7 +10,7 @@ dependencies: sdk: flutter flutter_bloc: ^8.1.6 cupertino_icons: ^1.0.8 - quantum_dots: ^0.0.29 + quantum_dots: ^0.0.30 dev_dependencies: flutter_test: diff --git a/example/pubspec_overrides.yaml b/example/pubspec_overrides.yaml index 9e175d9..8134cda 100644 --- a/example/pubspec_overrides.yaml +++ b/example/pubspec_overrides.yaml @@ -2,4 +2,4 @@ dependency_overrides: quantum_dots: path: ../ - version: 0.0.29 + version: 0.0.30 diff --git a/lib/src/bottom_sheet/title/bottom_sheet_header.dart b/lib/src/bottom_sheet/title/bottom_sheet_header.dart index 2036a09..472c057 100644 --- a/lib/src/bottom_sheet/title/bottom_sheet_header.dart +++ b/lib/src/bottom_sheet/title/bottom_sheet_header.dart @@ -17,6 +17,7 @@ class BottomSheetHeader extends StatelessWidget { final hasLeading = _uiState.leading != null; final hasActions = _uiState.actions != null; final description = _uiState.title.description; + final hasLeadingAndActions = hasLeading || hasActions; return Container( width: double.infinity, @@ -31,7 +32,7 @@ class BottomSheetHeader extends StatelessWidget { mainAxisAlignment: MainAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center, children: [ - if (hasLeading) + if (hasLeadingAndActions) ...[ Container( alignment: Alignment.centerLeft, width: _leadingAndActionsAreaSize, @@ -42,6 +43,7 @@ class BottomSheetHeader extends StatelessWidget { ) : const SizedBox(), ), + ], Expanded( child: Text( _uiState.title.title, @@ -49,7 +51,7 @@ class BottomSheetHeader extends StatelessWidget { style: headline20Bold.copyWith(color: wippyGray900), ), ), - if (hasActions) + if (hasLeadingAndActions) ...[ Container( alignment: Alignment.centerRight, width: _leadingAndActionsAreaSize, @@ -63,6 +65,7 @@ class BottomSheetHeader extends StatelessWidget { ) : const SizedBox(), ), + ], ], ), if (description != null) ...[ diff --git a/pubspec.yaml b/pubspec.yaml index 64ec29f..99c4522 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: quantum_dots description: the design system for wippy global product -version: 0.0.29 +version: 0.0.30 homepage: https://github.com/nrise/Quantum-Dots topics: - animations