Skip to content

Commit 71a9d8f

Browse files
committed
gfListTil modified
1 parent d6f24ac commit 71a9d8f

2 files changed

Lines changed: 6 additions & 16 deletions

File tree

example/lib/main.dart

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import 'package:ui_kit/components/badge/gf_badge.dart';
1515

1616
import 'package:ui_kit/components/card/gf_card.dart';
1717

18-
import 'package:ui_kit/components/list_item/gf_list_item.dart';
18+
import 'package:ui_kit/components/list_tile/gf_list_tile.dart';
1919

2020
import 'package:ui_kit/components/image/gf_image_overlay.dart';
2121

@@ -126,15 +126,13 @@ class _MyHomePageState extends State<MyHomePage> {
126126
//
127127
// ),
128128

129-
GFListItem(
129+
GFListTile(
130130
avatar: GFAvatar(),
131-
132-
title: GFHeader(
133-
text: 'HEADER',
134-
135-
// backgroundImage: NetworkImage('https://cdn.pixabay.com/photo/2017/12/03/18/04/christmas-balls-2995437_960_720.jpg'),
136-
),
131+
132+
icon: Icon(Icons.description),
133+
title: Text('Header'),
137134
subTitle: Text('Sub Header'),
135+
description: Text('Lorem ipsum gf header used to show the header of the list tile'),
138136
),
139137
Container(
140138
margin: EdgeInsets.only(top:10),

lib/components/list_item/gf_list_item.dart renamed to lib/components/list_tile/gf_list_tile.dart

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@ class GFListItem extends StatelessWidget {
66
/// The card's background color.
77
final Color color;
88

9-
/// The empty space that surrounds the card. Defines the card's outer [Container.margin].
10-
final EdgeInsetsGeometry margin;
11-
12-
/// The empty space that surrounds the card. Defines the card's outer [Container.padding].
13-
final EdgeInsetsGeometry padding;
14-
159
/// [GFAvatar] used to create rounded user profile
1610
final GFAvatar avatar;
1711

@@ -27,8 +21,6 @@ class GFListItem extends StatelessWidget {
2721
const GFListItem(
2822
{Key key,
2923
this.color,
30-
this.padding,
31-
this.margin,
3224
this.avatar,
3325
this.title,
3426
this.subTitle,

0 commit comments

Comments
 (0)