spancraft 1.0.0 copy "spancraft: ^1.0.0" to clipboard
spancraft: ^1.0.0 copied to clipboard

A powerful Flutter package for rendering richly formatted text with markdown-like syntax and interactive elements.

example/lib/main.dart

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);
            },
          ),
        ),
      ),
    );
  }
}
0
likes
160
points
71
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A powerful Flutter package for rendering richly formatted text with markdown-like syntax and interactive elements.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on spancraft