Skip to content

Commit

Permalink
updated empty avatar
Browse files Browse the repository at this point in the history
  • Loading branch information
clragon committed Nov 28, 2023
1 parent 85cd95c commit f197019
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 3 deletions.
Binary file added assets/icon/app/user.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/icon/playstore/e15_banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/icon/source/e15_banner.psd
Binary file not shown.
16 changes: 13 additions & 3 deletions lib/user/widgets/avatar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import 'package:e1547/client/client.dart';
import 'package:e1547/denylist/denylist.dart';
import 'package:e1547/interface/interface.dart';
import 'package:e1547/post/post.dart';
import 'package:e1547/settings/settings.dart';
import 'package:flutter/material.dart';
import 'package:flutter_cache_manager/flutter_cache_manager.dart';
import 'package:flutter_sub/flutter_sub.dart';
Expand Down Expand Up @@ -190,8 +189,19 @@ class Avatar extends StatelessWidget {
}

class EmptyAvatar extends StatelessWidget {
const EmptyAvatar({super.key});
const EmptyAvatar({
super.key,
this.radius = 20,
});

final double radius;

@override
Widget build(BuildContext context) => const AppIcon();
Widget build(BuildContext context) => Container(
decoration: const BoxDecoration(shape: BoxShape.circle),
clipBehavior: Clip.antiAlias,
width: radius * 2,
height: radius * 2,
child: Image.asset('assets/icon/app/user.png'),
);
}
1 change: 1 addition & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ flutter:
uses-material-design: true
assets:
- assets/icon/app/round.png
- assets/icon/app/user.png
fonts:
- family: JetBrains Mono
fonts:
Expand Down

0 comments on commit f197019

Please sign in to comment.