Skip to content

Commit af7d37f

Browse files
committed
GFButton changes done
1 parent 877cbc7 commit af7d37f

6 files changed

Lines changed: 129 additions & 711 deletions

File tree

example/lib/main.dart

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import 'package:ui_kit/components/drawer/gf_drawer_header.dart';
1616
import 'package:ui_kit/components/toast/gf_toast.dart';
1717
import 'package:ui_kit/components/appbar/gf_appbar.dart';
1818
import 'package:ui_kit/components/tabs/gf_tabBarView.dart';
19+
import 'package:ui_kit/components/button/gf_icon_button.dart';
1920

2021
final List<String> imageList = [
2122
"https://cdn.pixabay.com/photo/2017/12/03/18/04/christmas-balls-2995437_960_720.jpg",
@@ -180,18 +181,38 @@ class _MyHomePageState extends State<MyHomePage>
180181
// textColor: GFColor.danger,
181182
// icon: Icon(Icons.access_alarms),
182183
// hoverColor: GFColor.dark,
183-
// color: GFColor.success,
184+
color: GFColor.secondary,
184185
// focusColor: GFColor.danger,
185-
type: GFType.solid,
186+
type: GFType.outline2x,
187+
shape: GFButtonShape.pills,
186188
// splashColor: GFColor.warning,
187189
// highlightColor: GFColor.alt,
188190
// size: GFSize.large,
189191
// disabledColor: GFColor.dark,
190-
//disabledTextColor: GFColor.light,
191-
// blockButton: true,
192+
// disabledTextColor: GFColor.light,
193+
blockButton: true,
192194
// fullWidthButton: true,
193195
),
194196

197+
GFIconButton(
198+
onPressed: null,
199+
icon: Icon(Icons.ac_unit),
200+
// iconSize: 12.0,
201+
type: GFType.outline2x,
202+
// shape: GFButtonShape.pills,
203+
// size: GFSize.large,
204+
// buttonBoxShadow: true,
205+
// color: GFColor.primary,
206+
// boxShadow: BoxShadow(
207+
// color: Colors.pink,
208+
// blurRadius: 2.0,
209+
// spreadRadius: 1.0,
210+
// offset: Offset.zero,
211+
// ),
212+
// borderSide: BorderSide(color: Colors.pink, width: 1.0, style: BorderStyle.solid),
213+
// borderShape: RoundedRectangleBorder(side: BorderSide(color: Colors.pink, width: 2.0, style: BorderStyle.solid), borderRadius: BorderRadius.zero),
214+
),
215+
195216
RaisedButton(
196217
child: Text('goodiesMaterialButton button '),
197218
onPressed: (){},

lib/colors/gf_color.dart

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@ enum GFColor {
1717
}
1818

1919

20-
const PRIMARY = Color(0xff3f6ad8);
21-
const SECONDARY = Color(0xff6c757c);
22-
const SUCCESS =Color(0xff3ac47c);
23-
const INFO = Color(0xff13aaff);
24-
const WARNING = Color(0xfff7b825);
25-
const DANGER = Color(0xffd92550);
20+
const PRIMARY = Color(0xff3880FF);
21+
const SECONDARY = Color(0xffAA66CC);
22+
const SUCCESS =Color(0xff10DC60);
23+
const INFO = Color(0xff33B5E5);
24+
const WARNING = Color(0xffFFBB33);
25+
const DANGER = Color(0xffF04141);
26+
const LIGHT = Color(0xffE0E0E0);
27+
const DARK = Color(0xff222428);
28+
const WHITE = Color(0xffffffff);
2629
const FOCUS = Color(0xff434054);
2730
const ALT = Color(0xff794c8a);
28-
const LIGHT = Color(0xffededed);
29-
const DARK = Color(0xff333a40);
30-
const WHITE = Color(0xffffffff);
3131
const TRANSPARENT = Colors.transparent;
3232

3333
/// Pass [GFColor] or [Color]

0 commit comments

Comments
 (0)