Line data Source code
1 : import 'package:fast_immutable_collections/fast_immutable_collections.dart';
2 : import 'package:flutter/material.dart';
3 : import 'package:redfire/actions.dart';
4 : import 'package:redfire/extensions.dart';
5 : import 'package:redfire/widgets.dart';
6 :
7 : import '../../app_state.dart';
8 : import '../../organisations/pages/manage_organisations_page.dart';
9 :
10 : class AccountAvatar extends StatelessWidget {
11 1 : const AccountAvatar({Key? key}) : super(key: key);
12 :
13 1 : @override
14 : Widget build(BuildContext context) {
15 1 : return AccountButton<AppState>(
16 1 : options: ISet(
17 1 : [
18 1 : AccountButtonOption(
19 : 'Edit Organisations',
20 0 : (context) => context.dispatch<AppState>(
21 : const PushPageAction(ManageOrganisationsPageData()),
22 : ),
23 : ),
24 : ],
25 : ),
26 : );
27 : }
28 : }
|