-
Notifications
You must be signed in to change notification settings - Fork 1.8k
/
Copy pathbody.dart
59 lines (57 loc) · 1.96 KB
/
body.dart
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
import 'package:flutter/material.dart';
import 'package:shop_app/components/socal_card.dart';
import 'package:shop_app/constants.dart';
import 'package:shop_app/size_config.dart';
import 'sign_up_form.dart';
class Body extends StatelessWidget {
@override
Widget build(BuildContext context) {
return SafeArea(
child: SizedBox(
width: double.infinity,
child: Padding(
padding:
EdgeInsets.symmetric(horizontal: getProportionateScreenWidth(20)),
child: SingleChildScrollView(
child: Column(
children: [
SizedBox(height: SizeConfig.screenHeight * 0.04), // 4%
Text("Register Account", style: headingStyle),
Text(
"Complete your details or continue \nwith social media",
textAlign: TextAlign.center,
),
SizedBox(height: SizeConfig.screenHeight * 0.08),
SignUpForm(),
SizedBox(height: SizeConfig.screenHeight * 0.08),
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
SocalCard(
icon: "assets/icons/google-icon.svg",
press: () {},
),
SocalCard(
icon: "assets/icons/facebook-2.svg",
press: () {},
),
SocalCard(
icon: "assets/icons/twitter.svg",
press: () {},
),
],
),
SizedBox(height: getProportionateScreenHeight(20)),
Text(
'You agree with our \nTerm and Condition',
textAlign: TextAlign.center,
style: Theme.of(context).textTheme.caption,
)
],
),
),
),
),
);
}
}