saminsohag

TextScaler and TextAlign added

## 0.0.2
* TextScaler and TextAlign added.
## 0.0.1
* This package will render response of chatGPT in flutter app.
... ...
... ... @@ -165,6 +165,9 @@ Markdown and LaTeX can be powerful tools for formatting text and mathematical ex
log(title, name: "title");
log(url, name: "url");
},
textAlign: TextAlign.justify,
textScaler:
MediaQuery.textScalerOf(context),
style: const TextStyle(
// Regular text font size here.
fontSize: 15,
... ...
... ... @@ -182,7 +182,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.0.1"
version: "0.0.2"
http:
dependency: transitive
description:
... ...
... ... @@ -12,11 +12,15 @@ class TexMarkdown extends StatelessWidget {
this.style,
this.followLinkColor = false,
this.textDirection = TextDirection.ltr,
this.textAlign,
this.textScaler,
this.onLinkTab,
});
final TextDirection textDirection;
final String data;
final TextStyle? style;
final TextAlign? textAlign;
final TextScaler? textScaler;
final void Function(String url, String title)? onLinkTab;
final bool followLinkColor;
... ... @@ -28,6 +32,8 @@ class TexMarkdown extends StatelessWidget {
textDirection: textDirection,
style: style,
onLinkTab: onLinkTab,
textAlign: textAlign,
textScaler: textScaler,
followLinkColor: followLinkColor,
));
}
... ...
... ... @@ -10,10 +10,14 @@ class MdWidget extends StatelessWidget {
this.style,
this.textDirection = TextDirection.ltr,
this.onLinkTab,
this.textAlign,
this.textScaler,
this.followLinkColor = false});
final String exp;
final TextDirection textDirection;
final TextStyle? style;
final TextAlign? textAlign;
final TextScaler? textScaler;
final void Function(String url, String title)? onLinkTab;
final bool followLinkColor;
... ... @@ -122,9 +126,11 @@ class MdWidget extends StatelessWidget {
return Text.rich(
TextSpan(
children: list,
style: style,
style: style?.copyWith(),
),
textDirection: textDirection,
textScaler: textScaler,
textAlign: textAlign,
);
}
}
... ...
name: gpt_markdown
description: "The purpose of this package is to render the response of ChatGPT into a Flutter app."
version: 0.0.1
version: 0.0.2
homepage: https://github.com/saminsohag/flutter_packages/tree/main/gpt_markdown
environment:
... ...