Skip to content

Commit 756add3

Browse files
committed
subscription_list [nfc]: Factor out helper for dividing line
1 parent 19ed919 commit 756add3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/widgets/subscription_list.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,14 +132,15 @@ class _SubscriptionListHeader extends StatelessWidget {
132132

133133
@override
134134
Widget build(BuildContext context) {
135+
final line = Expanded(child: Divider(
136+
color: const HSLColor.fromAHSL(0.2, 240, 0.1, 0.5).toColor()));
135137
return SliverToBoxAdapter(
136138
child: ColoredBox(
137139
color: Colors.white,
138140
child: Row(crossAxisAlignment: CrossAxisAlignment.center,
139141
children: [
140142
const SizedBox(width: 16),
141-
Expanded(child: Divider(
142-
color: const HSLColor.fromAHSL(0.2, 240, 0.1, 0.5).toColor())),
143+
line,
143144
const SizedBox(width: 8),
144145
Padding(
145146
padding: const EdgeInsets.symmetric(vertical: 7),
@@ -152,8 +153,7 @@ class _SubscriptionListHeader extends StatelessWidget {
152153
height: (16 / 14),
153154
))),
154155
const SizedBox(width: 8),
155-
Expanded(child: Divider(
156-
color: const HSLColor.fromAHSL(0.2, 240, 0.1, 0.5).toColor())),
156+
line,
157157
const SizedBox(width: 16),
158158
])));
159159
}

0 commit comments

Comments
 (0)