Skip to content

Commit 634e2a8

Browse files
committed
gf accordion code optimised
1 parent 8fdc612 commit 634e2a8

2 files changed

Lines changed: 3 additions & 13 deletions

File tree

lib/components/accordian/gf_accordian.dart

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,7 @@ class _GFAccordionState extends State<GFAccordion>
113113
},
114114
child: Container(
115115
decoration: BoxDecoration(
116-
border: widget.titleborderColor == null
117-
? widget.titleborderColor
118-
: Border(
119-
top: BorderSide(color: Colors.black38),
120-
left: BorderSide(color: Colors.black38),
121-
right: BorderSide(color: Colors.black38),
122-
bottom: BorderSide(color: Colors.black38)),
116+
border: widget.titleborderColor ?? Border(),
123117
color: showAccordion
124118
? widget.titlebackgroundColor != null
125119
? widget.titlebackgroundColor
@@ -144,12 +138,7 @@ class _GFAccordionState extends State<GFAccordion>
144138
showAccordion
145139
? Container(
146140
decoration: BoxDecoration(
147-
border: widget.contentBorderColor == null
148-
? widget.contentBorderColor
149-
: Border(
150-
bottom: BorderSide(color: Colors.black38),
151-
left: BorderSide(color: Colors.black38),
152-
right: BorderSide(color: Colors.black38)),
141+
border: widget.contentBorderColor ?? Border(),
153142
color: widget.contentbackgroundColor != null
154143
? widget.contentbackgroundColor
155144
: Colors.white70,

lib/components/toast/gf_toast.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ class _GFToastState extends State<GFToast> with TickerProviderStateMixin {
7676
vsync: this,
7777
duration: widget.animationDuration,
7878
)..addListener(() => setState(() {}));
79+
7980
fadeanimation = Tween<double>(
8081
begin: 0.0,
8182
end: 1.0,

0 commit comments

Comments
 (0)