yako-dev / flutter_badges

A flutter package for creating badges.

Home Page:https://pub.dev/packages/badges

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Outlines clip request

rashmisridar opened this issue · comments

In the below code only outline border-color need to black

` Badge(
badgeColor: Colors.black,
shape: BadgeShape.square,
borderRadius: BorderRadius.circular(20.0),

                              toAnimate: false,
                              badgeContent: Text(
                                  'Hi',
                                  style: TextStyle(color: Colors.blue)),
                            )`

@rashmisridar sorry for the delay.
You can use the following code (badges: ^1.1.5 required)

Badge(
  elevation: 0,
  toAnimate: false,
  shape: BadgeShape.square,
  badgeColor: Colors.transparent,
  borderRadius: BorderRadius.circular(20.0),
  badgeContent: Text('Hi', style: TextStyle(color: Colors.blue)),
  borderSide: BorderSide(color: Colors.black, width: 1),
),