Skip to content

Commit

Permalink
Product page - attributes: visible divider in dark mode + less vertic…
Browse files Browse the repository at this point in the history
…al paddings (#5936)

(cherry picked from commit 6a91642)
  • Loading branch information
g123k authored Nov 26, 2024
1 parent d4507d0 commit f981d07
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions packages/smooth_app/lib/pages/product/summary_attribute_group.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'package:flutter/material.dart';
import 'package:smooth_app/generic_lib/design_constants.dart';
import 'package:smooth_app/themes/theme_provider.dart';

/// Shows the attribute groups in a product summary card.
class SummaryAttributeGroup extends StatelessWidget {
Expand Down Expand Up @@ -67,15 +68,9 @@ class _SummaryAttributeGroupHeader extends StatelessWidget {
.apply(color: Colors.grey),
),
)
: Padding(
padding: const EdgeInsetsDirectional.only(
top: VERY_SMALL_SPACE,
bottom: SMALL_SPACE,
),
child: isFirstGroup
? EMPTY_WIDGET
: const Divider(
color: Colors.black12,
),
);
: isFirstGroup
? const SizedBox(height: SMALL_SPACE)
: Divider(
color: context.lightTheme() ? Colors.black12 : Colors.white24,
);
}

0 comments on commit f981d07

Please sign in to comment.