-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathcommunity.dart
More file actions
65 lines (44 loc) · 1.24 KB
/
community.dart
File metadata and controls
65 lines (44 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
import 'package:everything_flutter/constants/text_styles.dart';
import 'package:flutter/material.dart';
import 'package:functional_widget_annotation/functional_widget_annotation.dart';
import 'package:intl/intl.dart';
import 'package:everything_flutter/constants/test_data.dart';
class CommPage extends StatefulWidget {
@override
_CommPageState createState() => _CommPageState();
}
class _CommPageState extends State<CommPage> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: _buildAppBar(),
body: _buildBody(),
);
}
@widget
AppBar _buildAppBar() => AppBar(
title: _appBarTitle,
iconTheme: IconThemeData(color: Colors.black),
elevation: 0,
brightness: Brightness.light,
// or use Brightness.dark
backgroundColor: Colors.grey[50],
);
@widget
Widget _buildBody() => SafeArea(
child: SingleChildScrollView(
child: Column(
children: <Widget>[
// _buildEvents(events)
],
),
),
);
}
final _appBarTitle = Align(
alignment: Alignment.centerRight,
child: Text(
"${DateFormat("MMM d, yyyy").format(DateTime.now())}",
style: TextStyles.subtitle,
),
);