mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-01-23 18:44:10 +01:00
refactor: Remove unused variable
This commit is contained in:
parent
f366ab6a22
commit
b9f5c94ead
@ -25,12 +25,11 @@ class Avatar extends StatelessWidget {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final thumbnail = mxContent?.getThumbnail(
|
final src = mxContent?.getThumbnail(
|
||||||
client ?? Matrix.of(context).client,
|
client ?? Matrix.of(context).client,
|
||||||
width: size * MediaQuery.of(context).devicePixelRatio,
|
width: size * MediaQuery.of(context).devicePixelRatio,
|
||||||
height: size * MediaQuery.of(context).devicePixelRatio,
|
height: size * MediaQuery.of(context).devicePixelRatio,
|
||||||
);
|
);
|
||||||
final src = thumbnail;
|
|
||||||
var fallbackLetters = '@';
|
var fallbackLetters = '@';
|
||||||
if ((name?.runes?.length ?? 0) >= 2) {
|
if ((name?.runes?.length ?? 0) >= 2) {
|
||||||
fallbackLetters = String.fromCharCodes(name.runes, 0, 2);
|
fallbackLetters = String.fromCharCodes(name.runes, 0, 2);
|
||||||
|
Loading…
Reference in New Issue
Block a user