David PHAM-VAN

Improve Bullet Widget

... ... @@ -5,6 +5,7 @@
- Implement To be signed flieds
- Improve Text rendering
- Add individual cell decoration
- Improve Bullet Widget
## 3.2.0
... ...
... ... @@ -165,8 +165,8 @@ class Paragraph extends StatelessWidget {
}
class Bullet extends StatelessWidget {
Bullet(
{this.text,
Bullet({
this.text,
this.textAlign = TextAlign.left,
this.style,
this.margin = const EdgeInsets.only(bottom: 2.0 * PdfPageFormat.mm),
... ... @@ -178,7 +178,8 @@ class Bullet extends StatelessWidget {
right: 2.0 * PdfPageFormat.mm,
),
this.bulletShape = BoxShape.circle,
this.bulletColor = PdfColors.black});
this.bulletColor = PdfColors.black,
});
final String? text;
... ... @@ -213,7 +214,9 @@ class Bullet extends StatelessWidget {
decoration: BoxDecoration(color: bulletColor, shape: bulletShape),
),
Expanded(
child: Text(
child: text == null
? SizedBox()
: Text(
text!,
textAlign: textAlign,
style: Theme.of(context).bulletStyle.merge(style),
... ...