saminsohag

16081_16081 syntex fixed

## 0.0.10
* $$_$$ syntex fixes.
## 0.0.9
* $_$ syntex added for latex with a gard condition for \(_\).
... ...
import 'dart:developer';
import 'package:flutter/material.dart';
import 'package:flutter_math_fork/flutter_math.dart';
import 'package:gpt_markdown/gpt_markdown.dart';
import 'package:flutter_math_fork/flutter_math.dart';
//
void main() {
runApp(const MyApp());
}
... ... @@ -46,6 +46,7 @@ class _MyAppState extends State<MyApp> {
}
}
//
class MyHomePage extends StatefulWidget {
const MyHomePage({super.key, required this.title, required this.onPressed});
final VoidCallback? onPressed;
... ... @@ -136,29 +137,27 @@ Markdown and LaTeX can be powerful tools for formatting text and mathematical ex
),
child: LayoutBuilder(builder: (context, constraints) {
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),
),
),
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");
},
onLinkTab: (url, title) {},
textAlign: TextAlign.justify,
// textScaler: const TextScaler.linear(1.3),
textScaleFactor: 1,
... ...
... ... @@ -182,7 +182,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.0.9"
version: "0.0.10"
http:
dependency: transitive
description:
... ...
... ... @@ -36,6 +36,7 @@ class TexMarkdown extends StatelessWidget {
.replaceAllMapped(
RegExp(
r"(?<!\\)\$\$(.*?)(?<!\\)\$\$",
dotAll: true,
),
(match) => "\\[${match[1] ?? ""}\\]")
.replaceAllMapped(
... ...
name: gpt_markdown
description: "The purpose of this package is to render the response of ChatGPT into a Flutter app."
version: 0.0.9
version: 0.0.10
homepage: https://github.com/saminsohag/flutter_packages/tree/main/gpt_markdown
environment:
... ...