fix: text style correction
This commit is contained in:
@@ -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,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
),
|
||||||
),
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user