0

Picture of the current output:

Code i used:

Badge(
                              badgeColor: CUSTOM_GREEN,
                              shape: BadgeShape.square,
                              borderRadius: 20,
                              toAnimate: false,
                              badgeContent: Text("Responded",
                                  style: TextStyle(
                                      color: Colors.white, fontSize: 12)),
                            )

Is there any way i can align the badge to be on the extreme right?

Marcin Orlowski
  • 72,056
  • 11
  • 123
  • 141
User1234
  • 35
  • 6

1 Answers1

0

Use MainAxisAlignment.spaceBetween with Row widget.

 Row(
              mainAxisAlignment: MainAxisAlignment.spaceBetween,
              children: <Widget>[
                Row(children: <Widget>[
                  CircleAvatar(),
                  Column(
                    children: [],
                  )
                ]),
                Badge(
                  badgeColor: CUSTOM_GREEN,
                  shape: BadgeShape.square,
                  borderRadius: 20,
                  toAnimate: false,
                  badgeContent: Text("Responded",
                      style: TextStyle(color: Colors.white, fontSize: 12)),
                )
              ]),
Gursewak Singh
  • 1,576
  • 1
  • 16
  • 32