Skip to content

Commit f5d6cbc

Browse files
committed
button boxshadow fixed
1 parent 6060962 commit f5d6cbc

2 files changed

Lines changed: 32 additions & 19 deletions

File tree

example/lib/main.dart

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -138,20 +138,33 @@ class _MyHomePageState extends State<MyHomePage> {
138138
RawMaterialButton(onPressed: null, child: Text("fv"),),
139139
FlatButton(onPressed: null, child: Text("cds")),
140140

141-
141+
// Container(
142+
// decoration: BoxDecoration(
143+
// color: Colors.teal,
144+
// boxShadow: [BoxShadow(
145+
// color: Colors.pink,
146+
// blurRadius: 1.5,
147+
// spreadRadius: 2.0,
148+
// offset: Offset.zero,
149+
// )
150+
// ]
151+
// ),
152+
// child: OutlineButton(child: Text("Fvd"),)),
153+
//
154+
//
142155
GFButton(
143156
color: Colors.orange,
144157
onPressed: null,
145158
child: Text("share"),
146159
type: GFType.outline,
147-
shape: GFShape.standard,
160+
shape: GFShape.pills,
148161
buttonBoxShadow: true,
149-
// boxShadow: BoxShadow(
150-
// color: Colors.pink.withOpacity(0.4),
151-
// blurRadius: 1.5,
152-
// spreadRadius: 2.0,
153-
// offset: Offset.zero,
154-
// ),
162+
boxShadow: BoxShadow(
163+
color: Colors.pink.withOpacity(0.4),
164+
blurRadius: 1.5,
165+
spreadRadius: 2.0,
166+
offset: Offset.zero,
167+
),
155168
),
156169

157170
GFTabs(

lib/components/badge/gf_button_badge.dart

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -101,17 +101,17 @@ class _GFButtonBadgeState extends State<GFButtonBadge> {
101101
height: this.size,
102102
child: GFButton(
103103
textStyle: widget.textStyle,
104-
// borderSide: widget.borderSide,
105-
// color: this.color,
106-
// textColor: this.textColor,
107-
// text: widget.text,
108-
// onPressed: this.onPressed,
109-
// type: this.type,
110-
// shape: this.shape,
111-
// position: this.position,
112-
// size: this.size,
113-
// borderShape: widget.borderShape,
114-
// icon: widget.counterChild
104+
borderSide: widget.borderSide,
105+
color: this.color,
106+
textColor: this.textColor,
107+
text: widget.text,
108+
onPressed: this.onPressed,
109+
type: this.type,
110+
shape: this.shape,
111+
position: this.position,
112+
size: this.size,
113+
borderShape: widget.borderShape,
114+
icon: widget.counterChild
115115
),
116116
),
117117
);

0 commit comments

Comments
 (0)