catch_list_tags 1.0.0+2

Catch List Tags #

This library helps capture tags like Facebook comments after @

 1_ Get the current name after @
 
 2_ Get all  names in comment after @
 

Example #

text
  Lorem ipsum #dolor sit amet, ea sea solum consul, eu est minim nusquam salutandi. #Sed consul mucius no, ad duo enim pertinacia. Nam soluta delectus ne, ad harum patrioque vix. Vim summo commune scripserit ne, facer timeam #sit id, eu has harum molestiae #scripse...
  
output
    List :  [#dolor , #Sed , #sit] ,
    
     currently : #scripse...

Getting Started #

Parameters #

NameTypeUsage
labelTextStringText Field label
filterTagStringFilter character inside comment like @ or #
getListTagsFunctionReturn names list in comment
getCurrentTagFunctionReturns current name in comment

Usage #

Code
class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);

  final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: CatchListTags(
        filterTag: "@",
        labelText: "Content",
        getListTags: (allTags) {
          print(' List Tags : $allTags');
        },
        gteCurrentTag: (currentTag) {
          print(' Current Tag : $currentTag');
        },
      ),
    );
  }
}
library
CatchListTags(
  filterTag: "@",
  labelText: "Content",
  getListTags: (allTags) {
    print(' List Tags : $allTags');
  },
  gteCurrentTag: (currentTag) {
    print(' Current Tag : $currentTag');
  },
),

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  catch_list_tags: ^1.0.0+2

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:catch_list_tags/catch_list_tags.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
0
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
70
Overall:
Weighted score of the above. [more]
44
Learn more about scoring.

We analyzed this package on May 30, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.8.2
  • pana: 0.13.8-dev
  • Flutter: 1.17.1

Health suggestions

Fix lib/catch_list_tags.dart. (-0.50 points)

Analysis of lib/catch_list_tags.dart reported 1 hint:

line 3 col 7: This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its instance fields aren't final: CatchListTags.labelText, CatchListTags.filterTag, CatchListTags.getListTags, CatchListTags.getCurrentTag

Maintenance issues and suggestions

Provide a file named CHANGELOG.md. (-20 points)

Changelog entries help developers follow the progress of your package. See the example generated by stagehand.

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and catch_list_tags.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
cupertino_icons ^0.1.2 0.1.3
flutter 0.0.0
Transitive dependencies
collection 1.14.12
meta 1.1.8
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test