Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

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.

ss1

use this package

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';

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

parameter type use
taglist list of class tags to pass the tags
fillrandomcolor bool to fill tag background with random color
fixedcolor color if fillrandomcolor == false then you have to pass a fix background color
iconcolor color icon color
iconsize double icon size
fontsize double label fontsize

Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

Comments are closed.