richtrex_span 1.2.0 copy "richtrex_span: ^1.2.0" to clipboard
richtrex_span: ^1.2.0 copied to clipboard

discontinuedreplaced by: css_text

An extended package of RichTrex package which is used to encode list of TextSpan into String, and decode String into list of TextSpan.

example/lib/main.dart

import 'package:example/src/debug_header.dart';
import 'package:example/src/decode_sample.dart';
import 'package:example/src/encode_sample.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(const MaterialApp(
      debugShowCheckedModeBanner: false,
      title: "RichTrex: Span",
      home: MyApp()));
}

class MyApp extends StatefulWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  int index = 0;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        body: SafeArea(
            child: Column(children: [
      DebugHeader(
          active: (x) => index == x, onTap: (x) => setState(() => index = x)),
      Expanded(child: const [EncodeSample(), DecodeSample()][index])
    ])));
  }
}
4
likes
90
pub points
0%
popularity

Publisher

unverified uploader

An extended package of RichTrex package which is used to encode list of TextSpan into String, and decode String into list of TextSpan.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

flutter, richtrex_image, url_launcher

More

Packages that depend on richtrex_span