-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathcontribution_screen.dart
More file actions
57 lines (54 loc) · 1.36 KB
/
contribution_screen.dart
File metadata and controls
57 lines (54 loc) · 1.36 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
import 'package:flutter/material.dart';
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
import 'package:trainfinder/widgets/text_form_field.dart';
class Contribution extends StatefulWidget {
@override
_ContributionState createState() => _ContributionState();
}
class _ContributionState extends State<Contribution> {
@override
Widget build(BuildContext context) {
return Scaffold(
body: Contribution(),
floatingActionButton: FloatingActionButton.extended(
icon: Icon(FontAwesomeIcons.ad),
onPressed: () {},
label: Text("Add"),
),
);
}
Widget Contribution() {
return Container(
child: Column(
children: <Widget>[
SizedBox(
height: 40,
),
Center(
child: Text(
"Contribute",
style: TextStyle(
fontSize: 40,
color: Colors.teal,
fontWeight: FontWeight.bold),
),
),
SizedBox(
height: 20,
),
LabelTextField(
hintText: "Train name",
labelText: "Train name",
),
SizedBox(
height: 10,
),
LabelTextField(
hintText: "Train time",
labelText: "Train time",
)
],
),
);
}
}