refactor: Standardize shift details UI by adopting UiButton and UiChip components, adjusting layout, and refining chip styling.

This commit is contained in:
Achintha Isuru
2026-02-22 19:59:22 -05:00
parent c48d981ddb
commit 68d6e7c5e3
4 changed files with 17 additions and 60 deletions

View File

@@ -29,7 +29,6 @@ enum UiChipVariant {
/// A custom chip widget with supports for different sizes, themes, and icons.
class UiChip extends StatelessWidget {
/// Creates a [UiChip].
const UiChip({
super.key,
@@ -42,6 +41,7 @@ class UiChip extends StatelessWidget {
this.onTrailingIconTap,
this.isSelected = false,
});
/// The text label to display.
final String label;
@@ -99,7 +99,7 @@ class UiChip extends StatelessWidget {
padding: padding,
decoration: BoxDecoration(
color: backgroundColor,
borderRadius: UiConstants.radiusFull,
borderRadius: UiConstants.radiusMd,
border: _getBorder(),
),
child: content,