Skip to content

Commit 428fc9e

Browse files
committed
list tile is in progress
1 parent 71a9d8f commit 428fc9e

3 files changed

Lines changed: 19 additions & 9 deletions

File tree

lib/components/card/gf_card.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import 'package:flutter/cupertino.dart';
22
import 'package:flutter/material.dart';
33
import 'package:ui_kit/components/button_bar/gf_button_bar.dart';
4-
import 'package:ui_kit/components/list_item/gf_list_item.dart';
4+
import 'package:ui_kit/components/list_tile/gf_list_tile.dart';
55
import 'package:ui_kit/components/image/gf_image_overlay.dart';
66
import 'package:ui_kit/position/gf_position.dart';
77

@@ -62,7 +62,7 @@ class GFCard extends StatelessWidget {
6262
final bool semanticContainer;
6363

6464
/// The title to display inside the [GFTitleBar]. see [GFTitleBar]
65-
final GFListItem title;
65+
final GFListTile title;
6666

6767
/// widget can be used to define content
6868
final Widget content;

lib/components/list_tile/gf_list_tile.dart

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,32 @@ import 'package:flutter/cupertino.dart';
22
import 'package:flutter/material.dart';
33
import 'package:ui_kit/components/avatar/gf_avatar.dart';
44

5-
class GFListItem extends StatelessWidget {
5+
class GFListTile extends StatelessWidget {
66
/// The card's background color.
77
final Color color;
88

99
/// [GFAvatar] used to create rounded user profile
1010
final GFAvatar avatar;
1111

12-
/// The title to display inside the [GFListItem]. see [Text]
12+
/// The title to display inside the [GFListTile]. see [Text]
1313
final Widget title;
1414

15-
/// The subTitle to display inside the [GFListItem]. see [Text]
15+
/// The subTitle to display inside the [GFListTile]. see [Text]
1616
final Widget subTitle;
1717

18-
/// The icon to display inside the [GFListItem]. see [Icon]
18+
/// The descriprion to display inside the [GFListTile]. see [Text]
19+
final Widget description;
20+
21+
/// The icon to display inside the [GFListTile]. see [Icon]
1922
final Widget icon;
2023

21-
const GFListItem(
24+
const GFListTile(
2225
{Key key,
2326
this.color,
2427
this.avatar,
2528
this.title,
2629
this.subTitle,
30+
this.description,
2731
this.icon})
2832
: super(key: key);
2933

@@ -32,7 +36,13 @@ class GFListItem extends StatelessWidget {
3236
return ListTile(
3337
leading: avatar,
3438
title: title,
35-
subtitle: subTitle,
39+
subtitle: Column(
40+
crossAxisAlignment: CrossAxisAlignment.start,
41+
children: <Widget>[
42+
subTitle ?? Container(),
43+
description ?? Container()
44+
],
45+
),
3646
trailing: icon,
3747
);
3848
}

lib/components/slider/gf_slider.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import 'dart:async';
2-
import 'dart:ffi';
2+
//import 'dart:ffi';
33
import 'package:flutter/material.dart';
44

55
List<T> map<T>(List list, Function handler) {

0 commit comments

Comments
 (0)