From 757ef09af723bba75bee77bd4d5b769d40a993d2 Mon Sep 17 00:00:00 2001 From: Simon Friis Vindum Date: Fri, 1 Dec 2023 14:44:09 +0100 Subject: [PATCH] Add additional text diagrams demonstrating overflow --- assets/widgets/text.png | Bin 1639 -> 0 bytes assets/widgets/text_ellipsis.png | Bin 1098 -> 1067 bytes assets/widgets/text_fade_max_lines.png | Bin 0 -> 1328 bytes assets/widgets/text_fade_soft_wrap.png | Bin 0 -> 1202 bytes packages/diagrams/lib/src/text.dart | 46 +++++++++++++++---------- 5 files changed, 27 insertions(+), 19 deletions(-) delete mode 100644 assets/widgets/text.png create mode 100644 assets/widgets/text_fade_max_lines.png create mode 100644 assets/widgets/text_fade_soft_wrap.png diff --git a/assets/widgets/text.png b/assets/widgets/text.png deleted file mode 100644 index 8ca7b3560d152662724b1e36e0e1b56a45dc985f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1639 zcmb`|_ct2~6bJB>@|>dOSS2dj=6R|qT5YBFCbhQ{)D|f!Mo0*?-m^l2hBYxdH$HxM6x)X3S1!7M_EZnP|^3 z5oTlc*MM1YaB$2}jTf2YC4Vzr4M6#z=mr45!e?S&p)Cpo-4q8){v`#uDe^bGx;ol=db&?xFa!OkMurB)MusLP#%3la=4PgrmKN4l zmNqula2p$2INZ(_Zf|G%?3ulzql2@PlZ&&ntBbRntBbpvD+1w;^gujEdUzs{p3k3q zd3t(#d-=TZM)|z(Mfv#oqWpY){r&s`{Qc1Z{(DtCW;v0)dd4 zn)*5|?e*)lH*a32r@zU_%y^rbNzBU1&d$!s$Cd4x3{mak3#9A^i%r#`#*pAGB`Lm zG&D5KG%`FgIx;#s`t|GAv9YmlHbEQ5-wv?UZ zhA&X$mX#pP&-O*|_?b^7^87^ZQ=%aS>($52C^5_~*p*xCiWsds-&kF|zHg=jy44NP zk>Hs%w*yIJ8M{T%0ErEaqW_svZeng)cVkbVx3A z6p=1a2|$`RDp>y{LsE-4Km8DD-^|gLQK|_=j-9PWsQx2HSfQshx&Pt5?icN$OE|p& zoQihX8soyq%-c;#&xvwezQU6y1gPv}anO;+^7=rwN69evsGt;;fdfhzvQmzRgK_Dq zQ!Ea6dn+(8U*3mH6HGat=oeLsl@>zk7Bqep&=uIW022F33|8DB!i?a6fFIApqQk3- zYz2nRUzXKWL@P>QSy;h7^PhP!qDkca$|}F(hVZY^a!rXQZU6so_>Yd>*9qsvKkbSSs~ID zr|B8O`X>_=8|k-z@(41gSTAJAGL`G`?G8`N9w9+!>oN8KPikxvWC zpW|qar1DS3gJELbH%E;UcOV~B@t5|kHs-%6>%V1dvZhJS#uVu;?aQv!*NV*AdVAm= uzR;(9F4+%7ByKvOmHB_m83{5}Cl(CnLrBQdHVNjd0Kl}3w8}LcBmV=M^eG_# diff --git a/assets/widgets/text_ellipsis.png b/assets/widgets/text_ellipsis.png index d10e589e08ab19db40d214da517e5ace910aab83..265b2c1c8f2d7eca8585f0e8e029281df984bfeb 100644 GIT binary patch delta 913 zcmV;C18)4v2&)K?K!03NOjJbx000~tA1Eg(FfTGSG&njrJw81^K|w@CL`O+TOG`>l zPEAlzP*YM;RaI11TUuRTUSVQlWMpGzY-?_DadUKZc6WApd3btxd3$<#e0_X>fPaC3 zfP#X7gMxyDgoK8Lg@=ZPh>3`bii(Vji;azqkB^R!kdKj*lYfzQ4l4!^6YG$H&OZ%FD~k%+1Zt&(F}&(9zP-($dn? z*4Ee8*VowC*nipC+1uOP+}z#Y-{0Wi;Njun;^E@s;^XAx<>uz*=jZ3>=;-U}>+9?6 z?CkCB?d|XH@9^;O^78WY^7Hfa^z`)f_4W1k_V)Mp_xSku`T6;7w?~TAC9zfg4Q!ed zL;jq@*zWB6kG-u+ibbHO?lWob1K@0{k(a2>#W`Vv|IX6V0#F7Z*
2t=00000NkvXXu0mjfmSg^$ delta 939 zcmV;c162I02+9bMK!1-=OjJc28y_JcBq%2;EGsWEF*P3Z=r>Uu^s;a50tE;T6tgW%Iva+$W zva++cx462wx_`R5yTQQ0!ok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>@aUpwwiv^4W~Wb(7$kXWXdG!=%Ew@&OlVW(PdqS1q3+8kDaHo9k||Z zrq~af#v~CB7B_ih+OWowuMStiZFx9W5fx+`kSP5#`);P}2y-w|zT^r#Ah=iJX6{N8 zAB|e)ppDg4M#FKebM)RZGv54UL3m)28a%iS2p*pawUU|A8W&hU9~k06woO?CQYLq^ z4saYnW;Am+aBPs#;TOdDh=2q$^xUG7{ymK^hIf-LO1;Y*lNR1_KY|lxCbvWkxZ1eB zW+=8+>rZR-T36wG`&3I-wsc(hA~x1Suv~xsBd*LDfg;`pxk$o3-q#NqhV763gR@1A_ye=ek2jY-tCy>;RTs9AE8CkirL`JFymt=D36 z=NCPFMn;cO7$KbgY1$X5&PJq*E`k#w5LKC#p)}+wt0J4Dp?v@ zja|20T|F@Hld>9eSkiZ8CqDW?b6%LWIw2TmK9(?f)<{9sgavN+TgrdfO~{+j*v3nb S>=ME64RE@ELNM(y5B~?J4z7Fv literal 0 HcmV?d00001 diff --git a/assets/widgets/text_fade_soft_wrap.png b/assets/widgets/text_fade_soft_wrap.png new file mode 100644 index 0000000000000000000000000000000000000000..051236c0acdcafbcfe660cafc4e84851f7ddfc76 GIT binary patch literal 1202 zcmbW1`8(Tp9KfTQ)?9l$>mC+to;{Dp)>Vr-`xK>8vXTZt7j@K~QpXtLio_i(6(sIp zaYlnm(70=uyJgO36IH|r5mylG+h>2l_Ih6L&--|u_vfe2^T|NKtrcV;vLFyh0cK<6 z0AwK$Su$YY{59||2#~`l4sHXbu_gdF< zZt5B68{alDH8Z_yVPOTevWD3_c<>V(Zilc(I662uIU!vhxu9H8ZXWJWyu5sTy!`?L zp9KX5M?^$MMPj0(Fqr5V3??=vCN4e>i%m#O#Nu#?cpNSXk55icPEAQkOHE17NGA{o zS($*D*~H(TKPTppNO`%r`FVNd{CqMwpF$xQ6c!W}7nhcll$MoIsb%Hm)QZZA-zzI= zG+I@4bxlomZEa0meI1=nZ+P*7!C*8tH8wXly?ogW*wWI%WHMPSR%>f(TU%TEt9CZ~ z6`RfO=wNqrc6N1l_w;o4_V)I@e%;^S|Hr_<;NalU(9oX%BO{}uqhsUa6O)r~-hN_g z3UF$Ac6JV6etv#oVS&TpEG@m`a=APnZ+Ut7!}5oZA6M7b*4Ee8`F#H7=GNAhKmaHZ z?Ck6ag~Hw4U6Dw%C)(TF+usM=-#_@oA;8hmkytD~K0ZD%9j9=J1BKIDSX%j&Hy-@2-M+ez<0m(OAVeDymf`(i>^R(h058*NCgVksKN`z(b=B@&&q76IZZ1AQwM_HZoSd z?qNP7j<8V9eGm5E(&HgvI^X0wU%3+`;MeB1%Sj%yS=MHBcj4yU{FwtdhbBgqmW1QN zEmjy>_l#mGw?3c5`Lc>wuJ@e+lN7}^8dZ=VCh%thfkFZo51xRdV@VVzb|1a3Ewu4( zN^DD!NXL{9+Vspdyde(=uHtI^4ds zr13T&VrSP!QEky*#36-NN3aaMlh&PzCEHMXcig*5Up(c>G@Ur4zv3oTFLboay6wm| zEYRh4>0HPYhwWz)FjXk;r1+jolc{zbuQ?{gWdrR2#d^T%z}u7}oU@4l#eC{(=}!|u zYgB~VXzEy!w_RXgOwc5!IgL0~mY}UbCM0hu1?%$W>Pu6+)ZN2y<|7F+qigX@PGS#v zxUk_S4HfZ5!O%h^!F?IE-g!Q)m-FZp> get diagrams async => [ - const TextDiagram(_text), const TextDiagram(_textEllipsis), + const TextDiagram(_textFadeMaxLines), + const TextDiagram(_textFadeSoftWrap), const TextDiagram(_textRich), const TextDiagram(_textBorder), const TextDiagram(_textGradient),