Skip to content

Commit c3ef646

Browse files
committed
fix: chips filter widget
1 parent b2013fc commit c3ef646

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

lib/custom_widgets/chip_widget.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import 'package:contraflutterkit/utils/colors.dart';
22
import 'package:flutter/cupertino.dart';
33
import 'package:flutter/material.dart';
4+
import 'package:flutter_svg/flutter_svg.dart';
45

56
class ChipWidget extends StatelessWidget {
67
final String text;
@@ -21,9 +22,10 @@ class ChipWidget extends StatelessWidget {
2122
children: <Widget>[
2223
Text(
2324
text,
24-
style: TextStyle(color: wood_smoke),
25+
style:
26+
TextStyle(color: wood_smoke, fontWeight: FontWeight.bold),
2527
),
26-
selected ? Icon(Icons.close) : SizedBox()
28+
selected ? SvgPicture.asset("assets/icons/close.svg") : SizedBox()
2729
],
2830
),
2931
decoration: ShapeDecoration(

lib/custom_widgets/chips_filter_widget.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ class _ChipsFilterWidgetState extends State<ChipsFilterWidget> {
2929
padding: const EdgeInsets.only(right: 16.0, top: 16.0),
3030
child: Wrap(
3131
spacing: 12,
32+
runSpacing: 12,
3233
children: List<Widget>.generate(
3334
options.length,
3435
(int index) {

0 commit comments

Comments
 (0)