Line data Source code
1 : import 'package:flutter/material.dart';
2 :
3 : import '../../../types.dart';
4 : import '../../../widgets.dart';
5 : import '../../auth/link-providers/widgets/link_providers_view.dart';
6 :
7 : class ProfilePage<T extends RedFireState> extends StatelessWidget {
8 0 : const ProfilePage({Key? key}) : super(key: key);
9 0 : @override
10 : Widget build(BuildContext context) {
11 0 : return Scaffold(
12 0 : appBar: EmptyAppBar(),
13 0 : body: LinkProvidersView<T>(),
14 : );
15 : }
16 : }
17 :
18 : // Old Profile Page, assumes a Profile model is stored in DB, not sure if we want that?
19 : // StoreConnector<T, ProfileData?>(
20 : // onInit: (store) => store.dispatch(TapProfileAction()),
21 : // onDispose: (store) => store.dispatch(TapProfileAction(turnOff: true)),
22 : // distinct: true,
23 : // converter: (store) => store.state.profile,
24 : // builder: (context, profileData) {
25 : // return Center(
26 : // child: Column(
27 : // children: [
28 : // if (profileData == null)
29 : // const WaitingIndicator('Connecting to database...')
30 : // else ...[
31 : // Text(
32 : // profileData.displayName ?? 'they who have yet to be named'),
33 : // Row(
34 : // children: [
35 : // if (profileData.authorizationStatus[ProvidersEnum.google] ==
36 : // AuthorizationEnum.gettingAuthorized)
37 : // const CircularProgressIndicator()
38 : // else
39 : // GoogleAuthorizationButton(
40 : // step: profileData
41 : // .authorizationStatus[ProvidersEnum.google] ??
42 : // AuthorizationEnum.unknown),
43 : // if (profileData.authorizationStatus[ProvidersEnum.asana] ==
44 : // AuthorizationEnum.gettingAuthorized)
45 : // const CircularProgressIndicator()
46 : // else
47 : // AsanaAuthorizationButton(
48 : // step: profileData
49 : // .authorizationStatus[ProvidersEnum.asana] ??
50 : // AuthorizationEnum.unknown)
51 : // ],
52 : // ),
53 : // ],
54 : // ],
55 : // ));
56 : // },
57 : // ),
|