Text underline display line above text instead of below

Issue

enter image description hereAs showing the given image After applying underline decoration text style to the text it shows line above text instead of below in flutter 2.2.

 TextButton(
              onPressed: () {},
              child: Text(
                getLocalValue(context, txtTermsNConditions),
                style: TextStyle(
                    fontSize: 12.sp,
                    fontWeight: fwMedium,
                    color: Color(clrPrimary),
                    decoration: TextDecoration.underline),
              ),
            )

Solution

That was a problem with fonts I have used, using another font it has been resolved.

Answered By – Brinda Rathod

Answer Checked By – Cary Denson (FlutterFixes Admin)

Leave a Reply

Your email address will not be published.