tagtly 1.0.0+1 copy "tagtly: ^1.0.0+1" to clipboard
tagtly: ^1.0.0+1 copied to clipboard

Tagtly package help you to detect a lot of hyperlink type. Can also show hybertext either in view or typeing.

example/lib/main.dart

import 'dart:developer';

import 'package:flutter/material.dart';
import 'package:tagtly/tagtly.dart';

void main() {
  runApp(const MyApp());
}

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Tagtly Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const TagtlyApp(),
    );
  }
}

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

  @override
  State<TagtlyApp> createState() => _TagtlyAppState();
}

class _TagtlyAppState extends State<TagtlyApp> {
  String text = '';

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Tagtly Demo'),
      ),
      body: Column(
        children: [
          Expanded(
            child: TagtlyTextField(
              decoration: const InputDecoration(
                  hintText: 'Type anything',
                  contentPadding: EdgeInsets.symmetric(horizontal: 8)),
              onChanged: (String value) {
                text = value;
                setState(() {});
              },
            ),
          ),
          const Text(
            'Output:',
            style: TextStyle(fontWeight: FontWeight.w700, fontSize: 22),
          ),
          Expanded(
              child: TagtlyTextView(
            text,
            onClick: (TextObj value) => log(value.type.toString()),
          ))
        ],
      ),
    );
  }
}
6
likes
140
pub points
37%
popularity

Publisher

unverified uploader

Tagtly package help you to detect a lot of hyperlink type. Can also show hybertext either in view or typeing.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on tagtly