fluttertagselector 0.1.0

  • Readme
  • Changelog
  • Example
  • Installing
  • 80

Welcome to Flutter Tag Selector! #

The fluttertagselector is a flutter package which you can use to create bubble tag selector as show in the below screen shots.

You can check it on pub.dev

fixedColor = Colors.blue

fillRandomColor=true

Use this package #

1. Depend on it #

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


dependencies:
  fluttertagselector: ^0.0.3


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:fluttertagselector/fluttertagselector.dart';

How to use : #

import 'package:flutter/material.dart';
import 'package:fluttertagselector/fluttertagselector.dart';
import 'package:fluttertagselector/tag_class.dart';

class Example extends StatelessWidget {
  final List<Tags> tagList = [
    Tags("Label 1",Icons.map),
    Tags("Label 2",Icons.headset),
    Tags("Label 3",Icons.info),
    Tags("Label 4",Icons.cake),
    Tags("Label 5",Icons.ac_unit),
  ];
  @override
  Widget build(BuildContext context) {
    return TagGenrator(tagList: tagList, fillRandomColor: true);
  }
}

Parameter you can use in TagGenrator #

ParameterTypeUse
tagListList of Class Tagsto pass the tags
fillRandomColorboolto fill tag background with random color
fixedColorColorif fillRandomColor == false then you have to pass a fix background color
iconColorColoricon color
iconSizedoubleicon size
fontSizedoublelabel fontSize

[0.0.1] - 07-06-2020. #

  • Create selectable tags.

[0.0.2] - 07-06-2020 #

  • Minor changes

[0.0.3] - 07-06-2020 #

  • Increased customization options like : fontSize, iconSize, iconColor

[0.1.0] - 07-06-2020 #

  • First Stable Version

example/example.dart

import 'package:flutter/material.dart';
import 'package:fluttertagselector/fluttertagselector.dart';
import 'package:fluttertagselector/tag_class.dart';

class Example extends StatelessWidget {
  final List<Tags> tagList = [
    Tags("Label 1",Icons.map),
    Tags("Label 2",Icons.headset),
    Tags("Label 3",Icons.info),
    Tags("Label 4",Icons.cake),
    Tags("Label 5",Icons.ac_unit),
  ];
  @override
  Widget build(BuildContext context) {
    return TagGenrator(tagList: tagList, fillRandomColor: true);
  }
}

Use this package as a library

1. Depend on it

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


dependencies:
  fluttertagselector: ^0.1.0

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:fluttertagselector/fluttertagselector.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
60
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
80
Learn more about scoring.

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

  • Dart: 2.8.4
  • pana: 0.13.15
  • Flutter: 1.17.5

Analysis suggestions

Package not compatible with SDK dart

Because:

  • fluttertagselector that is a package requiring null.

Health suggestions

Format lib/fluttertagselector.dart.

Run flutter format to format lib/fluttertagselector.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.7.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.12 1.14.13
meta 1.1.8 1.2.2
sky_engine 0.0.99
typed_data 1.1.6 1.2.0
vector_math 2.0.8 2.1.0-nullsafety