@@ -657,7 +657,10 @@ class _SampleOutputContainerState extends State<_SampleOutputContainer> {
657
657
Container (
658
658
padding: const EdgeInsets .only (left: 10 ),
659
659
alignment: Alignment .centerLeft,
660
- child: Text (_sample.title,
660
+
661
+ ///Space added for avoiding text hide issue of the
662
+ ///string having `infinite` word
663
+ child: Text (_sample.title + ' ' ,
661
664
style: TextStyle (
662
665
color: _model.textColor,
663
666
letterSpacing: 0.39 ,
@@ -946,60 +949,72 @@ class _SampleOutputContainerState extends State<_SampleOutputContainer> {
946
949
]),
947
950
),
948
951
Expanded (
949
- child: Column (
950
- children: < Widget > [
951
- Expanded (
952
- child: Container (
953
- color: _model.cardThemeColor,
954
- child: _OutputContainer (
955
- key: GlobalKey (),
956
- sampleOutputContainerState:
957
- this ,
958
- subItem: _sample,
959
- sampleView: _model
960
- .sampleWidget[_sample.key],
961
- sampleModel: _model),
962
- )),
963
- _sample.sourceLink != null &&
964
- _sample.sourceLink != ''
965
- ? Align (
966
- alignment:
967
- Alignment .centerLeft,
968
- child: Container (
969
- padding: const EdgeInsets
970
- .fromLTRB (
971
- 15 , 10 , 0 , 15 ),
972
- height: 40 ,
973
- child: Row (
974
- children: < Widget > [
975
- Text (
976
- 'Source: ' ,
977
- style: TextStyle (
978
- color: _model
979
- .textColor
980
- .withOpacity (
981
- 0.65 ),
982
- fontSize: 12 ),
983
- ),
984
- InkWell (
985
- onTap: () => launch (
986
- _sample
987
- .sourceLink),
988
- child: Text (
989
- _sample
990
- .sourceText,
991
- style: const TextStyle (
992
- fontSize: 12 ,
993
- color: Colors
994
- .blue)),
995
- ),
996
- ],
997
- ),
998
- ),
999
- )
1000
- : Container ()
1001
- ],
1002
- )),
952
+ child: Container (
953
+ color: _model.cardThemeColor,
954
+ child: Column (
955
+ children: < Widget > [
956
+ Expanded (
957
+ child: Container (
958
+ color:
959
+ _model.cardThemeColor,
960
+ child: _OutputContainer (
961
+ key: GlobalKey (),
962
+ sampleOutputContainerState:
963
+ this ,
964
+ subItem: _sample,
965
+ sampleView:
966
+ _model.sampleWidget[
967
+ _sample.key],
968
+ sampleModel: _model),
969
+ )),
970
+ _sample.sourceLink != null &&
971
+ _sample.sourceLink !=
972
+ ''
973
+ ? Align (
974
+ alignment: Alignment
975
+ .centerLeft,
976
+ child: Container (
977
+ padding:
978
+ const EdgeInsets
979
+ .fromLTRB (
980
+ 15 ,
981
+ 10 ,
982
+ 0 ,
983
+ 15 ),
984
+ height: 40 ,
985
+ child: Row (
986
+ children: <
987
+ Widget > [
988
+ Text (
989
+ 'Source: ' ,
990
+ style: TextStyle (
991
+ color: _model
992
+ .textColor
993
+ .withOpacity (
994
+ 0.65 ),
995
+ fontSize:
996
+ 12 ),
997
+ ),
998
+ InkWell (
999
+ onTap: () =>
1000
+ launch (_sample
1001
+ .sourceLink),
1002
+ child: Text (
1003
+ _sample
1004
+ .sourceText,
1005
+ style: const TextStyle (
1006
+ fontSize:
1007
+ 12 ,
1008
+ color:
1009
+ Colors .blue)),
1010
+ ),
1011
+ ],
1012
+ ),
1013
+ ),
1014
+ )
1015
+ : Container ()
1016
+ ],
1017
+ ))),
1003
1018
],
1004
1019
)))),
1005
1020
_sample.description != null && _sample.description != ''
@@ -1078,15 +1093,12 @@ class _SampleOutputContainerState extends State<_SampleOutputContainer> {
1078
1093
Expanded (
1079
1094
child: Container (
1080
1095
color: model.cardThemeColor,
1081
- padding: const EdgeInsets .all (5.0 ),
1082
- child: Padding (
1083
- padding: const EdgeInsets .fromLTRB (5 , 5 , 5 , 5 ),
1084
- child: _OutputContainer (
1085
- key: GlobalKey (),
1086
- sampleOutputContainerState: this ,
1087
- sampleModel: model,
1088
- subItem: list[i],
1089
- sampleView: model.sampleWidget[list[i].key]))),
1096
+ child: _OutputContainer (
1097
+ key: GlobalKey (),
1098
+ sampleOutputContainerState: this ,
1099
+ sampleModel: model,
1100
+ subItem: list[i],
1101
+ sampleView: model.sampleWidget[list[i].key])),
1090
1102
),
1091
1103
list[i].sourceLink != null && list[i].sourceLink != ''
1092
1104
? Align (
0 commit comments