Skip to content

Commit 8f76737

Browse files
committed
issue fixed
2 parents cd2b821 + ef4fbd3 commit 8f76737

File tree

8 files changed

+85
-111
lines changed

8 files changed

+85
-111
lines changed

CHANGELOG.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
# Changelog
22

3+
## 1.0.0-dev.3 - 2020-01-15
34

4-
## 1.0.0-dev.1 - 2014-01-14
5+
### Fixed
6+
* ListTile issue.
7+
8+
9+
## 1.0.0-dev.1 - 2020-01-14
510

611
### Fixed
712
* Warnings and Hints
813

914

10-
## 0.0.1-pre.3 - 2014-01-14
15+
## 0.0.1-pre.3 - 2020-01-14
1116

1217
### Fixed
1318
* Warnings and Hints
@@ -16,13 +21,13 @@
1621
* Changelog and Description
1722

1823

19-
## 0.0.1-pre.2 - 2014-01-14
24+
## 0.0.1-pre.2 - 2020-01-14
2025

2126
### Fixed
2227
* Warnings and Hints
2328

2429

25-
## 0.0.1-pre.1 - 2014-01-13
30+
## 0.0.1-pre.1 - 2020-01-13
2631

2732
### Added
2833
* initial release with buttons, badge, card, list tile, avatar and many more components.

README.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,27 @@
44
</a>
55
</p>
66

7-
[**GetFlutter**](https://www.getflutter.dev) is 100% a Flutter open source UI library that build to make flutter development easier than ever. GetFlutter has 1000+ pre-build widgets that you could reuse to build for both Flutter Web or Mobile app development.
8-
9-
[**NOTE**] Our library will also work on flutter web but since flutter didn't released stable version for Flutter web and it is still in Beta release so you might be get some rendering problem and hence we will update our library as flutter comes with the stable release for Flutter Web.
7+
[**GetFlutter**](https://www.getflutter.dev) is a 100% Free Flutter open source UI library that is build to make flutter development easier than ever. GetFlutter has 1000+ pre-build widgets that you could reuse to build both Flutter Web or Mobile app development.
108

119
## Table of contents
1210

11+
- [Screenshot](#screenshot)
1312
- [Quick start](#quick-start)
1413
- [Features](#features)
15-
- [Screenshot](#screenshot)
1614
- [Demo](#demo)
1715
- [Contributing](#contributing)
1816
- [Bugs and feature requests](#bugs-and-feature-requests)
1917
- [Documentation](#documentation)
2018
- [Copyright and license](#copyright-and-license)
2119

20+
21+
## Screenshot
22+
<p align="center">
23+
<a target="_blank" href="https://www.getflutter.dev/">
24+
<img src="https://ik.imagekit.io/ionicfirebaseapp/github_all_screens_scMyu9vXg.png" alt="Get Flutter">
25+
</a>
26+
</p>
27+
2228
## Quick start
2329

2430
Read the [Getting started page](https://docs.getflutter.dev)
@@ -30,15 +36,10 @@ In this beta release we are going to launch the library with following component
3036
#### Button | Badge | Avatar | Image | Card | Carousel | Tile | Tab | Typography
3137

3238

33-
## Screenshot
34-
<p align="center">
35-
<a target="_blank" href="https://www.getflutter.dev/">
36-
<img src="https://ik.imagekit.io/ionicfirebaseapp/github_all_screens_scMyu9vXg.png" alt="Get Flutter">
37-
</a>
38-
</p>
39-
4039
## Demo
4140

41+
Coming Soon
42+
4243

4344
## Contributing
4445

@@ -57,6 +58,7 @@ In this beta release we are going to launch the library with following component
5758

5859
[**Installation Guide**](https://docs.getflutter.dev)
5960

61+
[**NOTE**] Our library will also work on flutter web but since flutter didn't released stable version for Flutter web and it is still in Beta release so you might get some rendering problem and hence we will update our library as flutter comes with the stable release for Flutter Web.
6062

6163
### Social Media
6264

example/lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -948,7 +948,7 @@ class _MyHomePageState extends State<MyHomePage>
948948
//// border: Border.all(color: Colors.pink, width: 2.0),
949949
// ),
950950
// GFAvatar(
951-
// radius: 20.0,
951+
// radius: 20.0,
952952
// maxRadius: 50,
953953

954954
// child: Text("de"),

example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ packages:
8080
path: ".."
8181
relative: true
8282
source: path
83-
version: "1.0.0-dev.1"
83+
version: "1.0.0-dev.3"
8484
image:
8585
dependency: transitive
8686
description:

example/test/widget_test.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
import 'package:flutter_test/flutter_test.dart';
12

2-
import 'package:flutter_test/flutter_test.dart';void main() {
3+
void main() {
34
testWidgets('Basic test', (WidgetTester tester) async {
45
prints('Test paassed');
56
});

lib/components/list_tile/gf_list_tile.dart

Lines changed: 58 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ import 'package:getflutter/colors/gf_color.dart';
44
import 'package:getflutter/components/avatar/gf_avatar.dart';
55

66
class GFListTile extends StatelessWidget {
7+
///type of [String] used to pass text, alternative to title property and gets higher priority than title
8+
final String titleText;
9+
10+
///type of [String] used to pass text, alternative to subtitle property and gets higher priority than subtitle
11+
final String subtitleText;
12+
713
/// The GFListTile's background color. Can be given [Colors] or [GFColor]
814
final dynamic color;
915

@@ -19,105 +25,66 @@ class GFListTile extends StatelessWidget {
1925
/// The description to display inside the [GFListTile]. see [Text]
2026
final Widget description;
2127

22-
/// The description to display inside the [GFListTile]. see [Text]
23-
final Widget trailing;
24-
2528
/// The icon to display inside the [GFListTile]. see [Icon]
2629
final Widget icon;
2730

28-
///type of [bool] corresponds to true or false to show or hide the divider
29-
final bool showDivider;
30-
31-
/// The empty space that surrounds the card. Defines the card's outer [Container.padding]..
32-
final EdgeInsetsGeometry padding;
33-
34-
/// The divider's height extent.
35-
///
36-
/// The divider itself is always drawn as a horizontal line that is centered
37-
/// within the height specified by this value.
38-
///
39-
/// If this is null, then the [DividerThemeData.space] is used. If that is
40-
/// also null, then this defaults to 16.0.
41-
final double dividerHeight;
42-
43-
/// The thickness of the line drawn within the divider.
44-
///
45-
/// A divider with a [thickness] of 0.0 is always drawn as a line with a
46-
/// height of exactly one device pixel.
47-
///
48-
/// If this is null, then the [DividerThemeData.dividerThickness] is used. If
49-
/// that is also null, then this defaults to 0.0.
50-
final double dividerThickness;
51-
52-
/// The amount of empty space to the leading edge of the divider.
53-
///
54-
/// If this is null, then the [DividerThemeData.indent] is used. If that is
55-
/// also null, then this defaults to 0.0.
56-
final double dividerIndent;
57-
58-
/// The amount of empty space to the trailing edge of the divider.
59-
///
60-
/// If this is null, then the [DividerThemeData.endIndent] is used. If that is
61-
/// also null, then this defaults to 0.0.
62-
final double dividerEndIndent;
63-
64-
/// The color to use when painting the line.
65-
///
66-
/// If this is null, then the [DividerThemeData.color] is used. If that is
67-
/// also null, then [ThemeData.dividerColor] is used.
68-
final Color dividerColor;
31+
final EdgeInsets padding;
6932

7033
/// Creates ListTile with leading, title, trailing, image widget for almost every type of ListTile design.
71-
const GFListTile(
72-
{Key key,
73-
this.color,
74-
this.avatar,
75-
this.title,
76-
this.subTitle,
77-
this.description,
78-
this.icon,
79-
this.showDivider = true,
80-
this.padding,
81-
this.trailing,
82-
this.dividerEndIndent,
83-
this.dividerHeight,
84-
this.dividerIndent,
85-
this.dividerThickness,
86-
this.dividerColor})
87-
: super(key: key);
34+
const GFListTile({
35+
Key key,
36+
this.titleText,
37+
this.subtitleText,
38+
this.color,
39+
this.avatar,
40+
this.title,
41+
this.subTitle,
42+
this.description,
43+
this.icon,
44+
this.padding = const EdgeInsets.all(8.0),
45+
}) : super(key: key);
8846

8947
@override
9048
Widget build(BuildContext context) {
91-
92-
return Column(
93-
crossAxisAlignment: CrossAxisAlignment.start,
94-
children: <Widget>[
95-
Container(
96-
margin: padding,
97-
color: color,
98-
child: ListTile(
99-
leading: avatar,
100-
title: title,
101-
subtitle: subTitle != null || description != null
102-
? Column(
103-
crossAxisAlignment: CrossAxisAlignment.start,
104-
children: <Widget>[
105-
subTitle ?? Container(),
106-
description ?? Container()
107-
],
108-
)
109-
: Container(),
110-
trailing: Padding(padding: EdgeInsets.only(top: 16.0), child: icon),
111-
),
112-
),
113-
showDivider == true ? Divider(
114-
height: dividerHeight == null ? 16.0 : dividerHeight,
115-
thickness: dividerThickness == null ? 1.0 : dividerThickness,
116-
color: dividerColor == null ? Theme.of(context).dividerColor : dividerColor,
117-
indent: dividerIndent == null ? 0.0 : dividerIndent,
118-
endIndent: dividerEndIndent == null ? 0.0 : dividerEndIndent,
119-
) : Container(height: 10.0,)
120-
],
49+
return Container(
50+
constraints: BoxConstraints(minHeight: 50),
51+
padding: padding,
52+
decoration: BoxDecoration(
53+
color: color,
54+
borderRadius: BorderRadius.all(Radius.circular(5)),
55+
),
56+
child: Row(
57+
mainAxisAlignment: MainAxisAlignment.spaceBetween,
58+
children: <Widget>[
59+
avatar != null ? avatar : Container(),
60+
Expanded(
61+
child: Padding(
62+
padding: EdgeInsets.only(left: 10, right: 10),
63+
child: Column(
64+
crossAxisAlignment: CrossAxisAlignment.start,
65+
children: <Widget>[
66+
titleText != null
67+
? Text(
68+
titleText,
69+
style: TextStyle(
70+
fontSize: 17,
71+
fontWeight: FontWeight.w500,
72+
color: getGFColor(GFColor.dark)),
73+
)
74+
: title ?? Container(),
75+
subtitleText != null
76+
? Text(
77+
subtitleText,
78+
style: TextStyle(
79+
fontSize: 14.5, color: Colors.black54),
80+
)
81+
: subTitle ?? Container(),
82+
description ?? Container()
83+
],
84+
))),
85+
icon != null ? icon : Container(),
86+
],
87+
),
12188
);
12289
}
12390
}

lib/components/tabs/gf_tabBar.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ class GFTabBar extends StatefulWidget {
143143
/// body2 definition is used.
144144
final TextStyle unselectedLabelStyle;
145145

146-
147146
/// Typically a list of two or more [Tab] widgets.
148147
///
149148
/// The length of this list must match the [controller]'s [TabController.length]

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: getflutter
22
description: GetFlutter is open source libraries that come with pre-build 1000+ UI components. It makes development faster & more enjoyable. You can customize the component as per your need.
3-
version: 1.0.0-dev.1
3+
version: 1.0.0-dev.3
44
#author: GetFlutter <[email protected]>
55
homepage: https://github.com/ionicfirebaseapp/getflutter
66

0 commit comments

Comments
 (0)