__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
import 'package:flutter/material.dart';
import 'package:flutter_markdown/flutter_markdown.dart';
import 'package:url_launcher/url_launcher_string.dart';
class MarkdownText extends StatelessWidget {
const MarkdownText(
this.data, {
super.key,
});
final String data;
@override
Widget build(BuildContext context) {
return MarkdownBody(
data: data,
styleSheet: MarkdownStyleSheet(
a: TextStyle(
color: Theme.of(context).colorScheme.primary,
decoration: TextDecoration.underline,
fontWeight: FontWeight.bold,
),
),
onTapLink: (text, href, title) {
if (href != null) {
launchUrlString(href);
}
},
);
}
}
extension MarkdownX on String {
String bold() => '**$this**';
String link(String url) => '[$this]($url)';
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| form_widgets.dart | File | 2.76 KB | 0644 |
|
| iterable_extensions.dart | File | 279 B | 0644 |
|
| markdown_text.dart | File | 844 B | 0644 |
|