spancraft 1.0.0
spancraft: ^1.0.0 copied to clipboard
A powerful Flutter package for rendering richly formatted text with markdown-like syntax and interactive elements.
import 'package:flutter/material.dart';
import 'package:spancraft/spancraft.dart';
void main() {
runApp(const MainApp());
}
class MainApp extends StatelessWidget {
const MainApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: Center(
child: SmartText(
"""
Hello world !
__How are you?__
I'm llRugvedll'.
I'm **Rugved**'.
~~2 * 3 = 6~~'.
Here is my portfolio: https://rugved.apraj.vercel.com
#Flutter FlutterDev #MobileDeveloper
""",
boldStyle: SmartTextStyle(style: TextStyle(fontWeight: FontWeight.bold), symbol: "~~"),
onLinkTap: (url) {
print(url);
},
onHashtagTap: (tag) {
print(tag);
},
),
),
),
);
}
}