@@ -11,7 +11,7 @@ class BasicLtr extends StatelessWidget {
1111 @override
1212 Widget build (BuildContext context) {
1313 final scale =
14- (((MediaQuery .of (context).size.width / 600.0 ) - 1.0 ) * 0.6 ) + 1.0 ;
14+ (((MediaQuery .of (context).size.width / 600.0 ) - 1.0 ) * 0.3 ) + 1.0 ;
1515
1616 return DefaultTextStyle (
1717 style: const TextStyle (fontSize: 18 , color: Colors .black, height: 1.5 ),
@@ -76,8 +76,8 @@ TextSpan _text(BuildContext context, double textScaleFactor) => TextSpan(
7676 child: Floatable (
7777 float: FCFloat .end,
7878 clear: FCClear .both,
79- clearMinSpacing: 16 ,
80- maxWidthPercentage: 0.33 ,
79+ clearMinSpacing: - 50 * textScaleFactor ,
80+ maxWidthPercentage: 0.33 / textScaleFactor ,
8181 padding: const EdgeInsetsDirectional .only (start: 8 ),
8282 child: Img (
8383 assetName: _name ('walt_whitman.jpg' ), title: 'Walt Whitman' ),
@@ -87,7 +87,7 @@ TextSpan _text(BuildContext context, double textScaleFactor) => TextSpan(
8787 child: Floatable (
8888 float: FCFloat .start,
8989 clear: FCClear .start,
90- clearMinSpacing: 220 ,
90+ clearMinSpacing: 65 * textScaleFactor ,
9191 maxWidthPercentage: 0.25 / textScaleFactor,
9292 padding: const EdgeInsetsDirectional .only (end: 12 ),
9393 child: Img (
@@ -108,8 +108,10 @@ TextSpan _text(BuildContext context, double textScaleFactor) => TextSpan(
108108 ),
109109 recognizer: TapGestureRecognizer ()
110110 ..onTap = () {
111- ScaffoldMessenger .of (context).showSnackBar (
112- const SnackBar (content: Text ('Tapped on "Love"' )));
111+ ScaffoldMessenger .of (context)
112+ ..removeCurrentSnackBar ()
113+ ..showSnackBar (
114+ const SnackBar (content: Text ('Tapped on "Love"' )));
113115 },
114116 ),
115117 const TextSpan (
@@ -125,9 +127,11 @@ TextSpan _text(BuildContext context, double textScaleFactor) => TextSpan(
125127 ),
126128 recognizer: TapGestureRecognizer ()
127129 ..onTap = () {
128- ScaffoldMessenger .of (context).showSnackBar (const SnackBar (
129- content:
130- Text ('Tapped on "stand up for the stupid and crazy"' )));
130+ ScaffoldMessenger .of (context)
131+ ..removeCurrentSnackBar ()
132+ ..showSnackBar (const SnackBar (
133+ content:
134+ Text ('Tapped on "stand up for the stupid and crazy"' )));
131135 },
132136 ),
133137 const TextSpan (
@@ -189,8 +193,10 @@ TextSpan _text(BuildContext context, double textScaleFactor) => TextSpan(
189193 ),
190194 recognizer: TapGestureRecognizer ()
191195 ..onTap = () {
192- ScaffoldMessenger .of (context).showSnackBar (
193- const SnackBar (content: Text ('Tapped on "Song of Myself"' )));
196+ ScaffoldMessenger .of (context)
197+ ..removeCurrentSnackBar ()
198+ ..showSnackBar (const SnackBar (
199+ content: Text ('Tapped on "Song of Myself"' )));
194200 },
195201 ),
196202 ],
0 commit comments