@@ -15,7 +15,7 @@ import 'package:ui_kit/components/badge/gf_badge.dart';
1515
1616import 'package:ui_kit/components/card/gf_card.dart' ;
1717
18- import 'package:ui_kit/components/header_bar/gf_title_bar .dart' ;
18+ import 'package:ui_kit/components/list_tile/gf_list_tile .dart' ;
1919
2020import 'package:ui_kit/components/image/gf_image_overlay.dart' ;
2121
@@ -29,6 +29,8 @@ import 'package:ui_kit/shape/gf_shape.dart';
2929import 'package:ui_kit/components/toggle/gf_toggle.dart' ;
3030import 'package:ui_kit/types/gf_toggle_type.dart' ;
3131import 'package:flutter/cupertino.dart' ;
32+ import 'package:ui_kit/components/header/gf_header.dart' ;
33+ import 'package:ui_kit/position/gf_position.dart' ;
3234
3335import 'package:ui_kit/components/toast/gf_toast.dart' ;
3436
@@ -48,6 +50,7 @@ class MyApp extends StatelessWidget {
4850 title: 'UI_KIT_EXAMPLE' ,
4951 theme: ThemeData (
5052 primarySwatch: Colors .blue,
53+
5154 ),
5255debugShowCheckedModeBanner: false ,
5356
@@ -80,16 +83,70 @@ class _MyHomePageState extends State<MyHomePage> {
8083 title: Text (widget.title),
8184 ),
8285
83- body: Column (
86+ body:
87+
88+ SingleChildScrollView (
89+ child: Column (
8490 children: < Widget > [
85- GFToast (
86- bgColor: GFColor .warning,
87- button: GFButton (
88- onPressed: null ,
89- type: GFType .outline,
90- text: 'Accept' ,
91+
92+ // GFCard(
93+ //// boxFit: BoxFit.cover,
94+ //// colorFilter: new ColorFilter.mode(
95+ //// Colors.black.withOpacity(0.67), BlendMode.darken),
96+ // image: Image.asset("lib/assets/food.jpeg"),
97+ //// imageOverlay: AssetImage("lib/assets/food.jpeg"),
98+ // titlePosition: GFPosition.end,
99+ // title: GFListItem(
100+ // avatar: GFAvatar(
101+ // child: Text("tb"),
102+ // ),
103+ // title: Text(
104+ // 'title',
105+ // style: TextStyle(color: Colors.grey),
106+ // ),
107+ // subTitle: Text(
108+ // 'subtitle',
109+ // style: TextStyle(color: Colors.grey),
110+ // ),
111+ // icon: GFIconButton(
112+ // onPressed: null,
113+ // icon: Icon(Icons.favorite_border),
114+ // type: GFType.transparent,
115+ // ),
116+ // ),
117+ // ),
118+
119+ //
120+ // GFCard(
121+ // title: GFListItem(
122+ // title: Text('dcrfvjn'),
123+ // subTitle: Text('fghjk'),
124+ //
125+ // ),
126+ //
127+ // ),
128+
129+ GFListTile (
130+ avatar: GFAvatar (),
131+
132+ icon: Icon (Icons .description),
133+ title: Text ('Header' ),
134+ subTitle: Text ('Sub Header' ),
135+ description: Text ('Lorem ipsum gf header used to show the header of the list tile' ),
136+ ),
137+ Container (
138+ margin: EdgeInsets .only (top: 10 ),
139+ child: GFToast (
140+ //
141+ //
142+ //
143+ // button: GFButton(
144+ // onPressed: null,
145+ // type: GFType.outline,
146+ // text: 'Accept',
147+ // ),
148+ text: 'Marked as Favorite.' ,
91149 ),
92- text: 'Marked as Favorite.' ,
93150 ),
94151 Container (
95152 margin: EdgeInsets .only (left: 10 , right: 10 , top: 10 , bottom: 10 ),
@@ -124,9 +181,33 @@ class _MyHomePageState extends State<MyHomePage> {
124181 ),
125182 ],
126183 ),
184+ ),
185+
186+ Container (
187+ // padding: EdgeInsets.only(left: 20, right: 20),
188+ child: GFHeader (
189+ // icon: Icon(Icons.image, color: Colors.white,),
190+ text: 'GET FLUTTER HEADER' ,
191+ //textColor: Colors.red,
192+ dividerWidth: 20 ,
193+ //backgroundImage: NetworkImage('https://cdn.pixabay.com/photo/2017/12/03/18/04/christmas-balls-2995437_960_720.jpg'),
194+ //showDivider: false,
195+
196+ // textColor: Colors.black,
197+ // dividerColor: Colors.red,
198+ //dividerAlignment: Alignment.center,
199+
200+
201+
202+ // child: Text('GF HEADER ', ),
203+ // dividercolor: GFColor.warning,
204+ // dividerBorderRadius: BorderRadius.all(Radius.circular(0)),
205+ ),
127206 )
207+
128208 ],
129209 ),
210+ )
130211 // body: DefaultTabController(
131212 // length: 3,
132213 // child: Scaffold(
0 commit comments