File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import 'package:flutter/cupertino.dart' ;
22import 'package:flutter/material.dart' ;
33import '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' ;
55import 'package:ui_kit/components/image/gf_image_overlay.dart' ;
66import '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;
Original file line number Diff line number Diff line change @@ -2,28 +2,32 @@ import 'package:flutter/cupertino.dart';
22import 'package:flutter/material.dart' ;
33import '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 }
Original file line number Diff line number Diff line change 11import 'dart:async' ;
2- import 'dart:ffi' ;
2+ // import 'dart:ffi';
33import 'package:flutter/material.dart' ;
44
55List <T > map <T >(List list, Function handler) {
You can’t perform that action at this time.
0 commit comments