Open
Description
Hi @deniscolak how are you,
I recently had this exception when I attempted to use it with Arabic letters or even numbers, I couldn't figure it out until I removed the Arabic letters and worked just fine.
Code:
class TestApp extends StatelessWidget {
const TestApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('اهلا'),
),
body: Center(
child: TextAvatar(
text: 'مرحبا',
shape: Shape.Circular,
upperCase: true,
),
),
);
}
}
Exception:
════════ Exception caught by widgets library ═══════════════════════════════════
The following _CastError was thrown building TextAvatar(dirty):
Null check operator used on a null value
Metadata
Metadata
Assignees
Labels
No labels