@@ -9,14 +9,14 @@ class GFAccordion extends StatefulWidget {
99 this .content,
1010 this .titlebackgroundColor,
1111 this .collapsedIcon = const Icon (Icons .keyboard_arrow_down),
12- this .expandedIcon =
13- const Icon (Icons .keyboard_arrow_up),
12+ this .expandedIcon = const Icon (Icons .keyboard_arrow_up),
1413 this .title,
1514 this .textStyle = const TextStyle (color: Colors .black, fontSize: 16 ),
1615 this .titlePadding,
1716 this .descriptionPadding,
1817 this .descriptionbackgroundColor,
1918 this .contentChild,
19+ this .titleborderColor,
2020 this .margin})
2121 : super (key: key);
2222
@@ -56,6 +56,8 @@ class GFAccordion extends StatefulWidget {
5656 ///margin of type [EdgeInsets] which is used to set the margin of the [GFAccordion]
5757 final EdgeInsets margin;
5858
59+ final dynamic titleborderColor;
60+
5961 @override
6062 _GFAccordionState createState () => _GFAccordionState ();
6163}
@@ -86,11 +88,11 @@ class _GFAccordionState extends State<GFAccordion>
8688 @override
8789 Widget build (BuildContext context) {
8890 return Container (
89- decoration: BoxDecoration (
90- border: Border .all (
91- color: showAccordion ? Colors .white : Colors .black38
92- ),
93- ),
91+ // decoration: BoxDecoration(
92+ // border: Border.all(
93+ // color:widget.borderColor !=null ? widget.borderColor : Colors.white
94+ // ),
95+ // ),
9496 margin: widget.margin != null ? widget.margin : EdgeInsets .all (10 ),
9597 child: Column (
9698 crossAxisAlignment: CrossAxisAlignment .start,
@@ -112,6 +114,9 @@ class _GFAccordionState extends State<GFAccordion>
112114 },
113115 child: Container (
114116 decoration: BoxDecoration (
117+ border: Border .all (
118+ color: widget.titleborderColor != null ? widget.titleborderColor: Colors .white
119+ ),
115120 color: showAccordion? widget.titlebackgroundColor != null
116121 ? widget.titlebackgroundColor
117122 : Color (0xFFE0E0E0 ): widget.titlebackgroundColor
0 commit comments