fix: text style correction

This commit is contained in:
Deven Joshi
2021-07-20 14:14:06 +05:30
parent 5670e18c0f
commit 7df908f9c2
@@ -27,34 +27,30 @@ class _GradientAvatarState extends State<GradientAvatar> {
@override @override
Widget build(BuildContext context) => Center( Widget build(BuildContext context) => Center(
child: RepaintBoundary( child: RepaintBoundary(
child: SizedBox( child: Stack(
width: 100, alignment: Alignment.center,
height: 100, children: [
child: Stack( CustomPaint(
alignment: Alignment.center, painter: DemoPainter(widget.userId),
children: [ child: const SizedBox.expand(),
CustomPaint( ),
painter: DemoPainter(widget.userId), Padding(
child: const SizedBox.expand(), padding: const EdgeInsets.all(8),
), child: Opacity(
FittedBox( opacity: 0.7,
child: Padding( child: FittedBox(
padding: const EdgeInsets.all(32), child: Text(
child: Opacity( getShortenedName(widget.name),
opacity: 0.8, style: const TextStyle(
child: Text( color: Colors.white,
getShortenedName(widget.name), fontSize: 120,
style: const TextStyle( fontWeight: FontWeight.w500,
color: Colors.white,
fontSize: 112,
fontWeight: FontWeight.bold,
),
), ),
), ),
), ),
), ),
], ),
), ],
), ),
), ),
); );