simplified code across the app and consolidated duplicated helpers
This commit is contained in:
@@ -22,21 +22,14 @@ import '../../../../widget/user_avatar.dart';
|
||||
String? _cachedDisplayName;
|
||||
String? _cachedDisplayNameFor;
|
||||
|
||||
class AccountSection extends StatelessWidget {
|
||||
class AccountSection extends StatefulWidget {
|
||||
const AccountSection({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) => const _SchoolAccount();
|
||||
State<AccountSection> createState() => _AccountSectionState();
|
||||
}
|
||||
|
||||
class _SchoolAccount extends StatefulWidget {
|
||||
const _SchoolAccount();
|
||||
|
||||
@override
|
||||
State<_SchoolAccount> createState() => _SchoolAccountState();
|
||||
}
|
||||
|
||||
class _SchoolAccountState extends State<_SchoolAccount> {
|
||||
class _AccountSectionState extends State<AccountSection> {
|
||||
int _avatarVersion = 0;
|
||||
bool _avatarBusy = false;
|
||||
String? _displayName;
|
||||
|
||||
Reference in New Issue
Block a user