You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an issue with text alignment of anchors within a paragraph. A minimal reproduce example below.
It seems that the anchors/links are aligned normally, while the paragraphs are actually justified. The position of the anchor would be correct if the surrounding text was aligned normally as well.
Flutter 1.17.5 • channel stable
import'package:flutter/material.dart';
import'package:flutter_html/flutter_html.dart';
import'package:flutter_html/style.dart';
voidmain() {
runApp(MyApp());
}
classMyAppextendsStatelessWidget {
@overrideWidgetbuild(BuildContext context) {
returnMaterialApp(
title:'Flutter HTML Test',
theme:ThemeData(
primarySwatch:Colors.blue,
),
home:MyHomePage(),
);
}
}
classMyHomePageextendsStatefulWidget {
MyHomePage({Key key}) :super(key: key);
@override_MyHomePageStatecreateState() =>_MyHomePageState();
}
class_MyHomePageStateextendsState<MyHomePage> {
@overrideWidgetbuild(BuildContext context) {
returnScaffold(
body:Center(
child:Column(
mainAxisAlignment:MainAxisAlignment.center,
children:<Widget>[
Html(
data:"""<p>Text bla bla bla bla blabla bla bla <a href="google.com">Foobar</a> bla bla bla bla bla Longerwordwithblabla bla bla bla bla blup <a href="google.com">Foobar</a> bla bla bla bla bla bla bla bla bla bla.</p>""",
style: {
"p":Style(
textAlign:TextAlign.justify,
),
"a":Style(
textAlign:TextAlign.justify,
),
},
),
],
),
),
);
}
}
The text was updated successfully, but these errors were encountered:
I have an issue with text alignment of anchors within a paragraph. A minimal reproduce example below.
It seems that the anchors/links are aligned normally, while the paragraphs are actually justified. The position of the anchor would be correct if the surrounding text was aligned normally as well.
Flutter 1.17.5 • channel stable
The text was updated successfully, but these errors were encountered: