saminsohag

Some latex releted fixes

## 0.0.3
* Some latex related fixes.
## 0.0.2
* TextScaler and TextAlign added.
... ...
... ... @@ -136,46 +136,40 @@ Markdown and LaTeX can be powerful tools for formatting text and mathematical ex
),
child:
LayoutBuilder(builder: (context, constraints) {
return SingleChildScrollView(
scrollDirection: Axis.horizontal,
reverse: _direction == TextDirection.rtl,
child: SizedBox(
width: 550,
child: Theme(
data: Theme.of(context).copyWith(
textTheme: const TextTheme(
// For H1.
headlineLarge: TextStyle(fontSize: 55),
// For H2.
headlineMedium: TextStyle(fontSize: 45),
// For H3.
headlineSmall: TextStyle(fontSize: 35),
// For H4.
titleLarge: TextStyle(fontSize: 25),
// For H5.
titleMedium: TextStyle(fontSize: 15),
// For H6.
titleSmall: TextStyle(fontSize: 10),
),
),
child: TexMarkdown(
_controller.text,
textDirection: _direction,
onLinkTab: (url, title) {
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,
),
),
// child: const Text("Hello"),
return Theme(
data: Theme.of(context).copyWith(
textTheme: const TextTheme(
// For H1.
headlineLarge: TextStyle(fontSize: 55),
// For H2.
headlineMedium: TextStyle(fontSize: 45),
// For H3.
headlineSmall: TextStyle(fontSize: 35),
// For H4.
titleLarge: TextStyle(fontSize: 25),
// For H5.
titleMedium: TextStyle(fontSize: 15),
// For H6.
titleSmall: TextStyle(fontSize: 10),
),
),
child: TexMarkdown(
_controller.text,
textDirection: _direction,
onLinkTab: (url, title) {
log(title, name: "title");
log(url, name: "url");
},
textAlign: TextAlign.justify,
textScaler: const TextScaler.linear(1.3),
// textScaler:
// MediaQuery.textScalerOf(context),
style: const TextStyle(
// Regular text font size here.
fontSize: 15,
),
),
// child: const Text("Hello"),
);
}),
);
... ...
... ... @@ -182,7 +182,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.0.2"
version: "0.0.3"
http:
dependency: transitive
description:
... ...
... ... @@ -18,9 +18,9 @@ abstract class MarkdownComponent {
HrLine(),
ImageMd(),
BoldMd(),
ItalicMd(),
LatexMathMultyLine(),
LatexMath(),
ItalicMd(),
ATagMd(),
];
... ...
name: gpt_markdown
description: "The purpose of this package is to render the response of ChatGPT into a Flutter app."
version: 0.0.2
version: 0.0.3
homepage: https://github.com/saminsohag/flutter_packages/tree/main/gpt_markdown
environment:
... ...