Skip to content

Commit 0a4b774

Browse files
committed
Fixed issue #1 - text render overflowed
1 parent 8538929 commit 0a4b774

File tree

5 files changed

+15
-4
lines changed

5 files changed

+15
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.0.1 - 2020-08-05
2+
3+
* Fixed issue #1 - text render overflowed
4+
15
## 1.0.0 - 2020-07-17
26

37
* Fixed use of widget with empty initial value

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ In the `pubspec.yaml` of your flutter project, add the following dependency:
1212
```yaml
1313
dependencies:
1414
...
15-
select_form_field: "^1.0.0"
15+
select_form_field: "^1.0.1"
1616
```
1717
1818
In your library add the following import:

example/lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class _MyHomePageState extends State<MyHomePage> {
3636
},
3737
{
3838
'value': 'circleValue',
39-
'label': 'Circle Label',
39+
'label': 'Circle Label Loooooooooooooooooooong text',
4040
'icon': Icon(Icons.fiber_manual_record),
4141
'textStyle': TextStyle(color: Colors.red),
4242
},

lib/select_form_field.dart

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,14 @@ class _SelectFormFieldState extends FormFieldState<String> {
493493
child: Row(
494494
children: [
495495
lmElement['icon'] ?? SizedBox(width: 5),
496-
Text(lmElement['label'] ?? lmElement['value']),
496+
Expanded(
497+
child: Text(
498+
lmElement['label'] ?? lmElement['value'],
499+
overflow: TextOverflow.fade,
500+
maxLines: 1,
501+
softWrap: false,
502+
),
503+
),
497504
],
498505
),
499506
);

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: select_form_field
22
description: A Flutter select form field widget. It shows a list of options in a dropdown menu.
3-
version: 1.0.0
3+
version: 1.0.1
44
homepage: https://github.com/m3uzz/select_form_field
55

66
environment:

0 commit comments

Comments
 (0)