Line data Source code
1 : import 'package:flutter/material.dart';
2 :
3 : import '../organisations/widgets/organisation_selector.dart';
4 : import '../projects/widgets/grid-view/projects_grid.dart';
5 : import 'account-avatar/account_avatar.dart';
6 : import 'logo_icon.dart';
7 : import 'notifications-button/notifications_button.dart';
8 :
9 : class HomeScreen extends StatelessWidget {
10 1 : const HomeScreen({Key? key}) : super(key: key);
11 :
12 1 : @override
13 : Widget build(BuildContext context) {
14 1 : return Scaffold(
15 1 : appBar: AppBar(
16 : elevation: 0,
17 : backgroundColor: Colors.white,
18 : iconTheme: const IconThemeData(color: Colors.black),
19 : leading: const LogoIcon(),
20 : actions: const [NotificationsButton(), AccountAvatar()],
21 : ),
22 1 : body: Column(
23 1 : children: [
24 1 : Row(
25 : mainAxisAlignment: MainAxisAlignment.center,
26 : children: const [OrganisationSelector()],
27 : ),
28 : const ProjectsGrid()
29 : ],
30 : ),
31 : );
32 : }
33 : }
|