hashtagable 1.0.1 copy "hashtagable: ^1.0.1" to clipboard
hashtagable: ^1.0.1 copied to clipboard

outdated

Widgets and functions to implement hashtag decorated text. Decorates the words which start with `#` like a Twitter.

example/lib/main.dart

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

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

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: Padding(
          padding: EdgeInsets.symmetric(horizontal: 16),
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: <Widget>[
              /// Tagged text only to be shown
              HashTagText(
                text: "#Hello world. Hello #world",
                basicStyle: TextStyle(fontSize: 14, color: Colors.red),
                decoratedStyle: TextStyle(fontSize: 14, color: Colors.black),
              ),
              HashTagTextField(
                basicStyle: TextStyle(fontSize: 15, color: Colors.black),
                decoratedStyle: TextStyle(fontSize: 15, color: Colors.blue),
              ),
            ],
          ),
        ),
      ),
    );
  }
}
136
likes
0
points
29
downloads

Publisher

verified publisherbookm.me

Weekly Downloads

Widgets and functions to implement hashtag decorated text. Decorates the words which start with `#` like a Twitter.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, provider

More

Packages that depend on hashtagable